Fix DrawTextPro and more whitespace
This commit is contained in:
parent
0e21becbe3
commit
accfbadf9a
2 changed files with 4 additions and 5 deletions
|
|
@ -133,10 +133,9 @@ namespace Raylib_cs
|
||||||
public static void TraceLog(TraceLogLevel logLevel, string text)
|
public static void TraceLog(TraceLogLevel logLevel, string text)
|
||||||
{
|
{
|
||||||
using var str1 = text.ToUTF8Buffer();
|
using var str1 = text.ToUTF8Buffer();
|
||||||
TraceLog(logLevel, str1.AsPointer());
|
TraceLog(logLevel, str1.AsPointer());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>Set shader uniform value vector</summary>
|
/// <summary>Set shader uniform value vector</summary>
|
||||||
public static void SetShaderValueV<T>(Shader shader, int uniformLoc, T[] values, ShaderUniformDataType uniformType, int count)
|
public static void SetShaderValueV<T>(Shader shader, int uniformLoc, T[] values, ShaderUniformDataType uniformType, int count)
|
||||||
where T : unmanaged
|
where T : unmanaged
|
||||||
|
|
@ -740,10 +739,10 @@ namespace Raylib_cs
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Draw text using Font and pro parameters (rotation)</summary>
|
/// <summary>Draw text using Font and pro parameters (rotation)</summary>
|
||||||
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();
|
using var str1 = text.ToUTF8Buffer();
|
||||||
DrawTextEx(font, str1.AsPointer(), position, fontSize, spacing, tint);
|
DrawTextPro(font, str1.AsPointer(), position, origin, rotation, fontSize, spacing, tint);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Measure string width for default font</summary>
|
/// <summary>Measure string width for default font</summary>
|
||||||
|
|
|
||||||
|
|
@ -1416,7 +1416,7 @@ namespace Raylib_cs
|
||||||
|
|
||||||
/// <summary>Draw text using Font and pro parameters (rotation)</summary>
|
/// <summary>Draw text using Font and pro parameters (rotation)</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[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);
|
||||||
|
|
||||||
/// <summary>Draw one character (codepoint)</summary>
|
/// <summary>Draw one character (codepoint)</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue