Major API revision
[convexer.git] / nbvtf / librgbcx.h
diff --git a/nbvtf/librgbcx.h b/nbvtf/librgbcx.h
new file mode 100644 (file)
index 0000000..31ded0c
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef LIBRGBCX_H
+#define LIBRGBCX_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define LIBRGBCX_MAX_LEVEL 18
+#define LIBRGBCX_MIN_LEVEL 0
+
+void rgbcx__init(void);
+void rgbcx__encode_bc1( uint32_t level, void* pDst, const uint8_t* pPixels, int allow_3color, int use_transparent_texels_for_black );
+void rgbcx__encode_bc3( uint32_t level, void* pDst, const uint8_t* pPixels );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif