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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user