Skip to content
Myr

Merge branch 'master' of https://github.com/snake5/stb into working

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

authored by Sean Barrett · committed by Sean Barrett · parents 6a3d478, cd93a5d · 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
28 unmodified lines
29#define STB_DXT_DITHER 1 // use dithering. dubious win. never use for normal maps and the like!30#define STB_DXT_HIGHQUAL 2 // high quality mode, does two refinement steps instead of 1. ~30-40% slower.3132void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode);33void stb_compress_3dc_block_rgxx8(unsigned char *dest, const unsigned char *src, int mode);34#define STB_COMPRESS_DXT_BLOCK3536#ifdef STB_DXT_IMPLEMENTATION37
585 unmodified lines
623 }624625 stb__CompressColorBlock(dest,(unsigned char*) src,mode);626}627628void stb_compress_3dc_block_rgxx8(unsigned char *dest, const unsigned char *src, int mode)629{630 stb__CompressAlphaBlock(dest,(unsigned char*) src - 3,mode);631 stb__CompressAlphaBlock(dest + 8,(unsigned char*) src - 2,mode);632}633#endif // STB_DXT_IMPLEMENTATION634#endif // STB_INCLUDE_STB_DXT_H635636/*
40 unmodified lines