Sitelet https://github.com/Pintea/save_dds
Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

save_dds

Tiny code / single function to compress and save raw pixel data as a DDS image file in C++ (compression is done with stb_dxt)

RGB data is compressed as DXT1 and RGBA data as DXT5 using stb_dxt, then saved as a DDS image file that should be compatible with all(?) DDS loaders.

Note: does not support mipmaps at this time.

Usage: void savedds(const char* filename, const unsigned char* pData, int width, int height, int bpp)

About

Compress and save raw pixel data as a DDS image file (using stb_dxt for compression) in C++

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages