2
0
Эх сурвалжийг харах

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

Sean Barrett 8 жил өмнө
parent
commit
c39063727d
1 өөрчлөгдсөн 7 нэмэгдсэн , 0 устгасан
  1. 7 0
      stb_dxt.h

+ 7 - 0
stb_dxt.h

@@ -30,6 +30,7 @@
 #define STB_DXT_HIGHQUAL  2   // high quality mode, does two refinement steps instead of 1. ~30-40% slower.
 
 void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int alpha, int mode);
+void stb_compress_3dc_block_rgxx8(unsigned char *dest, const unsigned char *src, int mode);
 #define STB_COMPRESS_DXT_BLOCK
 
 #ifdef STB_DXT_IMPLEMENTATION
@@ -623,6 +624,12 @@ void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src, int a
 
    stb__CompressColorBlock(dest,(unsigned char*) src,mode);
 }
+
+void stb_compress_3dc_block_rgxx8(unsigned char *dest, const unsigned char *src, int mode)
+{
+   stb__CompressAlphaBlock(dest,(unsigned char*) src - 3,mode);
+   stb__CompressAlphaBlock(dest + 8,(unsigned char*) src - 2,mode);
+}
 #endif // STB_DXT_IMPLEMENTATION
 #endif // STB_INCLUDE_STB_DXT_H