1 #if (USE_POLYMOST == 0) 2 #error Polymost not enabled. 3 #endif 4 #if (USE_OPENGL == 0) 5 #error OpenGL not enabled. 6 #endif 7 8 #ifndef POLYMOSTTEXCOMPRESS_H 9 #define POLYMOSTTEXCOMPRESS_H 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 enum { 16 PTCOMPRESS_NONE = 0, 17 PTCOMPRESS_DXT1 = 1, 18 PTCOMPRESS_DXT5 = 2, 19 PTCOMPRESS_ETC1 = 3, 20 }; 21 int ptcompress_getstorage(int width, int height, int format); 22 int ptcompress_compress(void * bgra, int width, int height, unsigned char * output, int format); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif 29