2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-07-02 19:13:43 -04:00

Update to raylib 4.2 (#117)

Update bindings to use raylib 4.2.0. Review comments and utils.
This commit is contained in:
2022-10-01 12:27:25 +01:00
committed by GitHub
parent 65d9150ec4
commit 0d994b0992
10 changed files with 325 additions and 126 deletions

View File

@ -190,14 +190,14 @@ namespace Raylib_cs
/// <summary>Get dropped files names (memory should be freed)</summary>
public static string[] GetDroppedFiles()
{
int count;
var buffer = GetDroppedFiles(&count);
var files = new string[count];
var filePathList = LoadDroppedFiles();
var files = new string[filePathList.count];
for (var i = 0; i < count; i++)
for (var i = 0; i < filePathList.count; i++)
{
files[i] = Marshal.PtrToStringUTF8((IntPtr)buffer[i]);
files[i] = Marshal.PtrToStringUTF8((IntPtr)filePathList.paths[i]);
}
UnloadDroppedFiles(filePathList);
return files;
}
@ -661,15 +661,6 @@ namespace Raylib_cs
}
}
/// <summary>Compute mesh binormals</summary>
public static void GenMeshBinormals(ref Mesh mesh)
{
fixed (Mesh* p = &mesh)
{
GenMeshBinormals(p);
}
}
/// <summary>Convert wave data to desired format</summary>
public static void WaveFormat(ref Wave wave, int sampleRate, int sampleSize, int channels)
{