X-Git-Url: https://harrygodden.com/git/?p=convexer.git;a=blobdiff_plain;f=nbvtf%2Flibrgbcx.cpp;fp=nbvtf%2Flibrgbcx.cpp;h=ae6e72ccab759b43582a856d630760494862d716;hp=0000000000000000000000000000000000000000;hb=05e7fa40fd47dd5bfeaa1de9e9eba73319ae8564;hpb=23283f27eb4a14456ba00dc05e83bf19ad71b1a6 diff --git a/nbvtf/librgbcx.cpp b/nbvtf/librgbcx.cpp new file mode 100644 index 0000000..ae6e72c --- /dev/null +++ b/nbvtf/librgbcx.cpp @@ -0,0 +1,24 @@ +#include +#include +#include + +#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 ); + } +}