foreignsasquatch / raylib-hx

Haxe bindings for raylib, a simple and easy-to-use library to learn videogame programming
https://raylib.com
zlib License
55 stars 13 forks source link

Vector2.create() generates broken code. #25

Closed RadiantCorium closed 1 year ago

RadiantCorium commented 1 year ago

trying to do this

image

generates this in the C++ file

image

Which triggers the following error when trying to compile error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax

foreignsasquatch commented 1 year ago

Try just Rl.Vector2.create(x, y)

RadiantCorium commented 1 year ago

still broken

foreignsasquatch commented 1 year ago

could you share the code

RadiantCorium commented 1 year ago

could you share the code

image

foreignsasquatch commented 1 year ago

It would be nice if you could share a minimal example of this on a github repo.

RadiantCorium commented 1 year ago

It would be nice if you could share a minimal example of this on a github repo.

https://github.com/hxray-engine/RayGen/blob/master/hxray/assets/RgSprite.hx#L57

foreignsasquatch commented 1 year ago

thank you. i will look into it when i have time

RadiantCorium commented 1 year ago

thanks