Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

xnacollision.h,xnamath,h and DirectXMath.h mismatch

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 mrheisenberg   Members   

360
Like
0Likes
Like

Posted 13 October 2012 - 01:42 PM

When I use the xnamath,h collision functions,I get an error at all the places where XMVectorPermute() is used,like for instance:

d = XMVector3Dot(t, XMVectorPermute(RX2, -RX2, Permute1Y0X0W0Z));
	d_A = XMVector3Dot(h_A, XMVectorPermute(ARX2, ARX2, PermuteYXWZ));
	d_B = XMVector3Dot(h_B, XMVectorPermute(AR2X, AR2X, PermuteYXWZ));

The error is:

Error:No instance of overloaded function "XMVectorPermute" matches the argument list
argument types are: (DirectX::XMVECTOR, DirectX::XMVECTOR, const DirectX::XMVECTORI32)


Now this all used to work fine back on DirectX 10 apps,so I thought that maybe microsoft changed the function in DirectXMath.h,so it won't match the way it's used in xnacollision.h(also made by microsoft if I'm not mistaken).So I removed DirectXMath.h and included xnamath.h again,but it now all the math functions give me that same error and the weirdest part is,that even after saving,cleaning and restarting,when I click ''go to definition'' on any of those functions,they go to one of the DirectXMath#####.inl files,even when DirectXMath,h is not included anywhere in the solution.

Has anyone had such an issue when migrating to DirectXMath.h?I also found it hard to use XMFLOAT structures with x3daudio,I guess Microsoft doesn't support it anymore or something.

EDIT:It seems they made it some kind of template in one header and a normal function in another one.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.