-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raylib 4.5 #6
base: main
Are you sure you want to change the base?
Raylib 4.5 #6
Conversation
Can you expand on this? Are you saying that the auto generation no longer works? |
Sure, arrays seems to miss the mark when converted. i.e extern class MaterialRef extends RayMaterial {
public var shader(get, set):ShaderRef;
private inline function get_shader():ShaderRef { return cast _shader; }
private inline function set_shader(value:ShaderRef):ShaderRef { _shader = cast value; return value; }
public var maps(get, set):cpp.RawPointer<MaterialMap>;
private inline function get_maps():cpp.RawPointer<MaterialMap> { return cast _maps; }
private inline function set_maps(value:cpp.RawPointer<MaterialMap>):cpp.RawPointer<MaterialMap> { _maps = cast value; return value; }
public var params(get, set):float[4];
private inline function get_params():float[4] { return cast _params; }
private inline function set_params(value:float[4]):float[4] { _params = cast value; return value; }
} Should be: public var params(get, set):Array<Float>;
private inline function get_params():Array<Float> { return cast _params; }
private inline function set_params(value:Array<Float>):Array<Float> { _params = cast value; return value; } Previous it would generate: public var params(get, set):Float;
private inline function get_params():Float { return _params; }
private inline function set_params(value:Float):Float { _params = value; return value; } So it may not have been correct previously either, but at least it still compiled. Currently generating the RayLib.hx will result in compiling errors due to the |
Alright, sounds like a bug in the generator... ill merge this over the weekend and fix the generator, hand editing the generated .hx file isnt right, and defeats the purpose of the generation in the first place. Thanks for finding it! :) Cheers, |
Hi Ian ? Any hope to see an update to Raylib 5 ? |
Added Raylib 4.5 support. Need to still test on Windows and Linux. Couple of Notes:
Build.xml
: