[][src]Module stb::dxt

Fabian "ryg" Giesen's real-time DXT compressor Fabian "ryg" Giesen's real-time DXT compressor

Enums

CompressionMode

DXT compression mode

Functions

stb_compress_bc4_block
stb_compress_bc5_block
stb_compress_dxt_block

Call stb_compress_dxt_block() for every block (you must pad) source should be a 4x4 block of RGBA data in row-major order; Alpha channel is not stored if you specify alpha=0 (but you must supply some constant alpha in the alpha channel). You can turn on dithering and "high quality" using mode.