mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
Fix IsGestureDetected and formatting
This commit is contained in:
@@ -559,7 +559,7 @@ namespace Raylib_cs
|
||||
|
||||
/// <summary>Load file data as byte array (read)</summary>
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern byte* LoadFileData(string fileName, ref int bytesRead);
|
||||
public static extern byte* LoadFileData(string fileName, ref int bytesRead);
|
||||
|
||||
/// <summary>Unload file data allocated by LoadFileData()</summary>
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
@@ -783,8 +783,7 @@ namespace Raylib_cs
|
||||
|
||||
/// <summary>Check if a gesture have been detected</summary>
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool IsGestureDetected(Gesture gesture);
|
||||
public static extern CBool IsGestureDetected(Gesture gesture);
|
||||
|
||||
|
||||
/// <summary>Get latest detected gesture</summary>
|
||||
@@ -1323,7 +1322,7 @@ namespace Raylib_cs
|
||||
{
|
||||
fixed (byte* p = text)
|
||||
{
|
||||
ImageDrawText(ref dst, p, x,y,fontSize,color);
|
||||
ImageDrawText(ref dst, p, x, y, fontSize, color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1542,7 +1541,7 @@ namespace Raylib_cs
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void DrawTextEx(Font font, byte* text, Vector2 position, float fontSize, float spacing, Color tint);
|
||||
|
||||
public static void DrawTextEx(Font font, Utf8String text, Vector2 position, float fontSize,
|
||||
public static void DrawTextEx(Font font, Utf8String text, Vector2 position, float fontSize,
|
||||
float spacing, Color tint)
|
||||
{
|
||||
fixed (byte* p = text)
|
||||
@@ -1560,7 +1559,7 @@ namespace Raylib_cs
|
||||
{
|
||||
fixed (byte* p = text)
|
||||
{
|
||||
DrawTextEx(font, p, position, fontSize, spacing, tint);
|
||||
DrawTextEx(font, p, position, fontSize, spacing, tint);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1629,7 +1628,7 @@ namespace Raylib_cs
|
||||
{
|
||||
fixed (byte* p2 = append)
|
||||
{
|
||||
TextAppend(p1,p2, &position);
|
||||
TextAppend(p1, p2, &position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -127,7 +127,7 @@ namespace Raylib_cs
|
||||
{
|
||||
this.framePoses = framePoses;
|
||||
this.frameCount = frameCount;
|
||||
this.boneCount = boneCount;
|
||||
this.boneCount = boneCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user