God, it’s too hard for me, i give up.
I tryed to wrap again my haxe class but i couldn’t do a valid instance.
obj = new ::hxcpp::ScreenPressor_obj(width,height);
→ error: no matching constructor for initialization of ‘::hxcpp::ScreenPressor_obj’
OR
obj = ::hxcpp::ScreenPressor_obj::__alloc( HX_CTX ,(int)960,(int)540);
→ Error: ./src/hxcpp/Main.cpp:29:50: error: use of undeclared identifier ‘_hx_ctx’
obj = ::hxcpp::ScreenPressor_obj::__alloc( HX_CTX ,(int)960,(int)540);
^
haxelib/hxcpp/3,4,188/include/hx/StackContext.h:85:19: note: expanded from macro ‘HX_CTX’
#define HX_CTX hx
I openned an issue here : Embind · Issue #713 · HaxeFoundation/hxcpp · GitHub