Reputation: 1023
Whenever I was converting old Dx11 code to up to date Dx11 code, I was having issues with D3DXMatrix as the documentation wasn't very clear on how to convert this, so how do you go about converting a D3DXMATRIX? -Answer Below
Upvotes: 2
Views: 2667
Reputation: 1023
D3DXMATRIX
is deprecated, you instead need to use an XMMATRIX
.
You'll have to include DirectXMath.h, and then use the DirectX
namespace. Finally, you may have issues even still with using XMMATRIX
because it doesn't align properly in some cases, if this is the case, use DirectX::CXMMATRIX
, this will allow for proper alignment. With that, you should be good to go.
Upvotes: 4