Skip to content
Myr

added basic 3Dc support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by snake5 · committed by snake5 · parent 996ccf2 · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:stb_dxt.h+7 added
30 unmodified lines
31#define STB_DXT_DITHER 1 // use dithering. dubious win. never use for normal maps and the like!32#define STB_DXT_HIGHQUAL 2 // high quality mode, does two refinement steps instead of 1. ~30-40% slower.3334void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode);35void stb_compress_3dc_block_rgxx8(unsigned char *dest, const unsigned char *src, int mode);36#define STB_COMPRESS_DXT_BLOCK3738#ifdef STB_DXT_IMPLEMENTATION39
585 unmodified lines
625 }626627 stb__CompressColorBlock(dest,(unsigned char*) src,mode);628}629630void stb_compress_3dc_block_rgxx8(unsigned char *dest, const unsigned char *src, int mode)631{632 stb__CompressAlphaBlock(dest,(unsigned char*) src - 3,mode);633 stb__CompressAlphaBlock(dest + 8,(unsigned char*) src - 2,mode);634}635#endif // STB_DXT_IMPLEMENTATION636637#endif // STB_INCLUDE_STB_DXT_H