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

Naming fix

This commit is contained in:
Rgebee 2023-03-30 19:24:28 +01:00
commit 27e2afc828
2 changed files with 9 additions and 9 deletions

View file

@ -1389,7 +1389,7 @@ namespace Raylib_cs
/// <summary>Load colors palette from image as a Color array (RGBA - 32bit)</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Color* LoadImagePalette(Image image, int maxPaletteSize, int* colorsCount);
public static extern Color* LoadImagePalette(Image image, int maxPaletteSize, int* colorCount);
/// <summary>Unload color data loaded with LoadImageColors()</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -2278,7 +2278,7 @@ namespace Raylib_cs
/// <summary>Load model animations from file</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern ModelAnimation* LoadModelAnimations(sbyte* fileName, uint* animsCount);
public static extern ModelAnimation* LoadModelAnimations(sbyte* fileName, uint* animCount);
/// <summary>Update model animation pose</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -2387,7 +2387,7 @@ namespace Raylib_cs
/// <summary>Update sound buffer with new data</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void UpdateSound(Sound sound, void* data, int samplesCount);
public static extern void UpdateSound(Sound sound, void* data, int sampleCount);
/// <summary>Unload wave data</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -2548,7 +2548,7 @@ namespace Raylib_cs
/// <summary>Update audio stream buffers with data</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void UpdateAudioStream(AudioStream stream, void* data, int samplesCount);
public static extern void UpdateAudioStream(AudioStream stream, void* data, int frameCount);
/// <summary>Check if any audio stream buffers requires refill</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]

View file

@ -684,19 +684,19 @@ namespace Raylib_cs
}
/// <summary>Load model animations from file</summary>
public static ReadOnlySpan<ModelAnimation> LoadModelAnimations(string fileName, ref uint animsCount)
public static ReadOnlySpan<ModelAnimation> LoadModelAnimations(string fileName, ref uint animCount)
{
using var str1 = fileName.ToUTF8Buffer();
fixed (uint* p = &animsCount)
fixed (uint* p = &animCount)
{
var model = LoadModelAnimations(str1.AsPointer(), p);
ModelAnimation* modelAnimations = LoadModelAnimations(str1.AsPointer(), p);
if ((IntPtr)model == IntPtr.Zero)
if ((IntPtr)modelAnimations == IntPtr.Zero)
{
throw new ApplicationException("Failed to load animation");
}
return new ReadOnlySpan<ModelAnimation>(model, (int)animsCount);
return new ReadOnlySpan<ModelAnimation>(modelAnimations, (int)animCount);
}
}