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 Answer 1

1
\$\begingroup\$

There is DirectXTex which has a lightweight DDS loader which can load mipmaps for you. You can integrate it very easily (just include 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\$
2
  • \$\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
    Commented May 24, 2014 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
    Commented May 25, 2014 at 0:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .