xna-math-library

Invisible geometry in DX11

为君一笑 提交于 2019-12-12 02:56:32
问题 After struggling for many hours to understand and compensate for Microsoft's deprecation of D3DX in Windows 8, I've run into a problem that I can't shake off. The first time I started my program, it became immortal because of an access violation. After having restarted my computer and recompiling and running the same code, it doesn't crash, but the cube I should be seeing just isn't there. I'm also getting a warning that "object declared on the heap may not be aligned 16". AFAIK from my

Crash after m = XMMatrixIdentity() - alignment memory in classes?

一曲冷凌霜 提交于 2019-11-29 13:47:10
I was looking at the tutorials in DirectX SDK. Tutorial 5 works fine, but after I have copied and separated the code to my own classes, I got strange error during launching my application. The line is: g_World1 = XMMatrixIdentity(); Because of it, I got error in xnamathmatrix.int operator= which looks like that: XMFINLINE _XMMATRIX& _XMMATRIX::operator= ( CONST _XMMATRIX& M ) { r[0] = M.r[0]; r[1] = M.r[1]; r[2] = M.r[2]; r[3] = M.r[3]; return *this; } And the error message is: Access violation reading location 0xffffffff I have read somewhere that it could be caused by something connected to

Crash after m = XMMatrixIdentity() - alignment memory in classes?

£可爱£侵袭症+ 提交于 2019-11-28 07:20:52
问题 I was looking at the tutorials in DirectX SDK. Tutorial 5 works fine, but after I have copied and separated the code to my own classes, I got strange error during launching my application. The line is: g_World1 = XMMatrixIdentity(); Because of it, I got error in xnamathmatrix.int operator= which looks like that: XMFINLINE _XMMATRIX& _XMMATRIX::operator= ( CONST _XMMATRIX& M ) { r[0] = M.r[0]; r[1] = M.r[1]; r[2] = M.r[2]; r[3] = M.r[3]; return *this; } And the error message is: Access