I'm trying to use an Image filter function, specifically Raylib.imageColorGrayscale(). It wants a cpp.Star<Image> but Image is a cpp.Struct which leads to an issue where hxcpp tries to pass cpp::Struct<Image> instead of just Image* to the function in the compiled C++ code.
This is what I'm doing right now:
var test = Raylib.loadImage("assets/img/test.png");
Raylib.imageColorGrayscale(testImage);
I'm not really experienced with Haxe and native C++ so it's possible that this might be my fault. Is this a bug or am I doing something wrong?
I'm trying to use an Image filter function, specifically
Raylib.imageColorGrayscale()
. It wants acpp.Star<Image>
butImage
is acpp.Struct
which leads to an issue where hxcpp tries to passcpp::Struct<Image>
instead of justImage*
to the function in the compiled C++ code.This is what I'm doing right now:
I'm not really experienced with Haxe and native C++ so it's possible that this might be my fault. Is this a bug or am I doing something wrong?