0
\$\begingroup\$

I believe there's a D3DX function that can load a DDS file with mipmaps but D3DX is deprecated. Any function/library that can load it and that's not deprecated? I need it for DirectX if it makes any difference.

\$\endgroup\$
1
\$\begingroup\$

There is DirectXTex which has a lightweight DDS loader which can load mipmaps for you. You can integrate it very easily (just inlude some headers in your project and that's it) and call CreateDDSTextureFromFile function to load a texture from disk. There is an even more robust loader one which I haven't tried yet.

\$\endgroup\$
  • \$\begingroup\$ I've downloaded it but used only DDSTextureLoader files (header + cpp) as I don't want or need a whole additional project in my solution. These 2 files however are light-weight, easy to integrate in the project and do exactly what I want! Many thanks! \$\endgroup\$ – NPS May 24 '14 at 19:03
  • \$\begingroup\$ I have one problem with this library, though: gamedev.stackexchange.com/questions/75577/… I'm saying that in case somebody else gets it too. \$\endgroup\$ – NPS May 25 '14 at 0:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.