Watch
2
0
Fork
You've already forked raylib-cs
0

Review bindings

- All raylib structs are now blittable.
- Fixing some incorrect functions(types, naming etc).
- Remove netfx.props.
This commit is contained in:
Rgebee 2021-03-25 20:32:31 +00:00
commit e49ca5b92c
6 changed files with 64 additions and 108 deletions

View file

@ -5,16 +5,14 @@ using System.Security;
namespace Raylib_cs
{
// NOTE: Helper types to be used instead of array return types for *ToFloat functions
public struct float3
public unsafe struct float3
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 7)]
public float[] v;
public fixed float v[3];
}
public struct float16
public unsafe struct float16
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 7)]
public float[] v;
public fixed float v[16];
}
[SuppressUnmanagedCodeSecurity]