Advertisement

DDS decoding in C++ without DirectX at all?

Started by June 17, 2020 11:29 PM
4 comments, last by cozzie 4 years, 7 months ago

Is there an open source library out there somewhere that can load and decode DDS files (including compressed formats like DXTn) without requiring me to have a DirectX context around? My project is in C++ and is using GDI+ for its drawing (and no converting the textures to some other easier to parse format isn't an option)

Freeimage library lists DDS reading as feature: https://freeimage.sourceforge.io/

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Advertisement

DirectXTex can read and write DDS files, and and can decompress block compressed formats.

Thanks for the advice, FreeImage works great and it was easy to use FreeImage with GDI+ thanks to being able to study what the C# binding (which can load an image into a .NET Bitmap object which is just a GDI+ Bitmap object in .NET form) was doing.

I use ddstextureloader, a little bit customized. Very lightweight and does what it needs to (can be found on github)

Crealysm game & engine development: http://www.crealysm.com

Looking for a passionate, disciplined and structured producer? PM me

This topic is closed to new replies.

Advertisement