Jump to content
  • Advertisement
Sign in to follow this  
chadmv

OpenGL directxmath osx/linux?

This topic is 2019 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Would directxmath.h work on osx/linux with OpenGL?  I know there's the difference in normalized device coordinates but is there anything in the API that restricts it to Windows?

 

Thanks!

 

 

Edit:

 

I'm guessing these preprocessor directives would prevent it from running on the other platforms:

#if !defined(_XM_BIGENDIAN_) && !defined(_XM_LITTLEENDIAN_)
#if defined(_M_AMD64) || defined(_M_IX86) || defined(_M_ARM)
#define _XM_LITTLEENDIAN_
#elif defined(_M_PPCBE)
#define _XM_BIGENDIAN_
#else
#error DirectX Math does not support this target
#endif
#endif // !_XM_BIGENDIAN_ && !_XM_LITTLEENDIAN_

Share this post


Link to post
Share on other sites
Advertisement

I expect you will run in to some compile issues with WORD, DWORD and such, also probably you will have to do something about the intrinsics and compiler support in the header files which try to figure out if your CPU supports SSE2, but other than that it should be possible.

Share this post


Link to post
Share on other sites

Thanks!  Maybe I'll just go with GLM since my project needs to be cross-platform and it seems to work out of the box.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!