Advertisement Jump to content
Sign in to follow this  

OpenGL directxmath osx/linux?

This topic is 1749 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?







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)
#elif defined(_M_PPCBE)
#define _XM_BIGENDIAN_
#error DirectX Math does not support this target

Share this post

Link to post
Share on other sites

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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!