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.
1 Answer
\$\begingroup\$
\$\endgroup\$
2
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.
-
\$\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\$– NPSCommented 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\$– NPSCommented May 25, 2014 at 0:16