Update to raylib 4.2 (#117)
Update bindings to use raylib 4.2.0. Review comments and utils.
This commit is contained in:
parent
65d9150ec4
commit
0d994b0992
10 changed files with 322 additions and 123 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue