Hi,
I didn’t tried to compile your sources, but one thing looks wrong as for me.
Inside cppFileCode
macro you trying to call DecompressI
through ScreenPressor
, but I believe it should be ScreenPressor_obj
.
So, try something like this:
@:cppFileCode('
#include <emscripten/bind.h>
using namespace emscripten;
EMSCRIPTEN_BINDINGS(my_module) {
class_<hxcpp::ScreenPressor_obj>("ScreenPressor") // not sure if name inside "..." shold be replaced too
.constructor<int, int>()
.function("DecompressFrame", &hxcpp::ScreenPressor_obj::DecompressI)
;
}
')