microsoft / UVAtlas

UVAtlas isochart texture atlas
https://walbourn.github.io/uvatlas-return-of-the-isochart/
MIT License
834 stars 148 forks source link

Portable version of UVAtlas ? #6

Closed vlj closed 7 years ago

vlj commented 7 years ago

UVAtlas lib currently relies on Windows.h and DirectXMaths.h which are not available on non Windows platform. Would a Pull Request replacing all call to Windows specific headers with Platform agnostic lib (glm, Eigen) and a cmake build system be accepted in this repo ?

walbourn commented 7 years ago

Actually, the latest version of DirectXMath is available under an open-source license on GitHub. It's use of windows.h is entirely optional. If you have problems getting the intriniscs code to compile for your platform, you can use #define _XM_NO_INTRINSICS_ before it to force the C codepaths.

The UVAtlas library uses a few DXGI enumerations, but I think should be fairly portable C99/C++11.

Using DirectXTex or DirectXMesh on non-Windows platforms is much more challenging since they use Direct3D 11 and Windows Imaging Component (WIC).

vlj commented 7 years ago

thanks, I didn't know DirectXMath was available on Github.