diff --git a/Raylib-cs/Raylib.Utils.cs b/Raylib-cs/Raylib.Utils.cs index a815330..2788663 100644 --- a/Raylib-cs/Raylib.Utils.cs +++ b/Raylib-cs/Raylib.Utils.cs @@ -133,10 +133,9 @@ namespace Raylib_cs public static void TraceLog(TraceLogLevel logLevel, string text) { using var str1 = text.ToUTF8Buffer(); - TraceLog(logLevel, str1.AsPointer()); + TraceLog(logLevel, str1.AsPointer()); } - /// Set shader uniform value vector public static void SetShaderValueV(Shader shader, int uniformLoc, T[] values, ShaderUniformDataType uniformType, int count) where T : unmanaged @@ -740,10 +739,10 @@ namespace Raylib_cs } /// Draw text using Font and pro parameters (rotation) - public static void DrawTextPro(Font font, string text, Vector2 position, float fontSize, float spacing, Color tint) + public static void DrawTextPro(Font font, string text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) { using var str1 = text.ToUTF8Buffer(); - DrawTextEx(font, str1.AsPointer(), position, fontSize, spacing, tint); + DrawTextPro(font, str1.AsPointer(), position, origin, rotation, fontSize, spacing, tint); } /// Measure string width for default font diff --git a/Raylib-cs/Raylib.cs b/Raylib-cs/Raylib.cs index f215dd1..76a6f6e 100644 --- a/Raylib-cs/Raylib.cs +++ b/Raylib-cs/Raylib.cs @@ -1416,7 +1416,7 @@ namespace Raylib_cs /// Draw text using Font and pro parameters (rotation) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void DrawTextPro(Font font, sbyte* text, Vector2 position, float fontSize, float spacing, Color tint); + public static extern void DrawTextPro(Font font, sbyte* text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint); /// Draw one character (codepoint) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]