mirror of
https://github.com/nothings/stb
synced 2025-01-05 22:34:23 +03:00
Merge branch 'bc4' of https://github.com/ppiastucki/stb into ppiastucki-bc4
This commit is contained in:
commit
e9b8f7ea35
@ -36,6 +36,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode);
|
void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode);
|
||||||
|
void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src_r_one_byte_per_pixel);
|
||||||
void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel);
|
void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -636,6 +637,11 @@ void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int a
|
|||||||
stb__CompressColorBlock(dest,(unsigned char*) src,mode);
|
stb__CompressColorBlock(dest,(unsigned char*) src,mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void stb_compress_bc4_block(unsigned char *dest, const unsigned char *src)
|
||||||
|
{
|
||||||
|
stb__CompressAlphaBlock(dest,(unsigned char*) src, 1);
|
||||||
|
}
|
||||||
|
|
||||||
void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)
|
void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src)
|
||||||
{
|
{
|
||||||
stb__CompressAlphaBlock(dest,(unsigned char*) src,2);
|
stb__CompressAlphaBlock(dest,(unsigned char*) src,2);
|
||||||
|
Loading…
Reference in New Issue
Block a user