[Feature] Replace pointers with ref, out... (For a cleaner code)
MrScautHD opened this issue · comments
Before submitting a new issue, please verify and check:
- The issue is specific to Raylib-cs and not raylib
- I checked there is no similar issue already reported
- My code has no errors or misuse of Raylib-cs
Issue description
Hello!
I would suggest to change the methods that use pointers to the features that C# use like: out, ref...
Why i suggest this?
Because sadly pointers in c# are very messy... :/
Example
public static extern unsafe void QuaternionToAxisAngle(Quaternion q, Vector3* outAxis, float* outAngle);
TO:
public static extern void QuaternionToAxisAngle(Quaternion q, out Vector3 axis, out float angle);
If you accept this feature request i could do a pr for it :)
I see it is not that easy.