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

Review font functions

This commit is contained in:
Rgebee 2022-02-15 19:59:26 +00:00
commit 1db5428786
2 changed files with 10 additions and 7 deletions

View file

@ -590,10 +590,13 @@ namespace Raylib_cs
}
/// <summary>Load font from file with extended parameters</summary>
public static Font LoadFontEx(string fileName, int fontSize, int[] fontChars, int charsCount)
public static Font LoadFontEx(string fileName, int fontSize, int[] fontChars, int glyphCount)
{
using var str1 = fileName.ToUTF8Buffer();
return LoadFontEx(str1.AsPointer(), fontSize, fontChars, charsCount);
fixed (int* p = fontChars)
{
return LoadFontEx(str1.AsPointer(), fontSize, p, glyphCount);
}
}
/// <summary>Upload vertex data into GPU and provided VAO/VBO ids</summary>