2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-09-09 03:01:41 -04:00

Review bindings

- All raylib structs are now blittable.
- Fixing some incorrect functions(types, naming etc).
- Remove netfx.props.
This commit is contained in:
2021-03-25 20:32:31 +00:00
parent fb37faaeec
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]