Skip to content
Myr

rename 3dc to bc5, tweaks to clean stuff up

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 · parent a217948 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:stb_dxt.h+3 added-3 removed
28 unmodified lines
29#define STB_DXT_NORMAL 030#define STB_DXT_DITHER 1 // use dithering. dubious win. never use for normal maps and the like!31#define STB_DXT_HIGHQUAL 2 // high quality mode, does two refinement steps instead of 1. ~30-40% slower.3233void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode);34void stb_compress_bc5_block_rg88(unsigned char *dest, const unsigned char *src, int mode);33void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode);34void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel, int mode);35#define STB_COMPRESS_DXT_BLOCK3637#ifdef STB_DXT_IMPLEMENTATION38
586 unmodified lines
625626 stb__CompressColorBlock(dest,(unsigned char*) src,mode);627}628629void stb_compress_bc5_block_rg88(unsigned char *dest, const unsigned char *src)629void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)630{631 stb__CompressAlphaBlock(dest,(unsigned char*) src,2);632 stb__CompressAlphaBlock(dest + 8,(unsigned char*) src+1,2);633}
44 unmodified lines