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

created MeshExtensions

This commit is contained in:
Nickolas McDonald 2023-09-08 21:50:46 -04:00
commit 88ea2f1f08
3 changed files with 118 additions and 13 deletions

View file

@ -222,6 +222,12 @@ public static unsafe partial class Raylib
}
}
/// <summary>C++ style memory allocator</summary>
public static T* New<T>(int count) where T : unmanaged
{
return (T*)MemAlloc(count * sizeof(T));
}
/// <summary>Load file data as byte array (read)</summary>
public static byte* LoadFileData(string fileName, ref uint bytesRead)
{