--- /dev/null
+#include <stdint.h>
+#include <cstring>
+#include <math.h>
+
+#define RGBCX_IMPLEMENTATION
+#include "rgbcx.h"
+
+extern "C"
+{
+ void rgbcx__init(void)
+ {
+ rgbcx::init();
+ }
+
+ void rgbcx__encode_bc1( uint32_t level, void* pDst, const uint8_t* pPixels, int allow_3color, int use_transparent_texels_for_black )
+ {
+ rgbcx::encode_bc1( level, pDst, pPixels, allow_3color, use_transparent_texels_for_black );
+ }
+
+ void rgbcx__encode_bc3( uint32_t level, void* pDst, const uint8_t* pPixels )
+ {
+ rgbcx::encode_bc3( level, pDst, pPixels );
+ }
+}