Merge branch 'dev' into master
This commit is contained in:
commit
627aa45d73
2 changed files with 8 additions and 1 deletions
|
|
@ -1429,7 +1429,7 @@ public static unsafe partial class Raylib
|
|||
|
||||
/// <summary>Generate image: grayscale image from text data</summary>
|
||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern Image GenImageText(int width, int height, int tileSize);
|
||||
public static extern Image GenImageText(int width, int height, sbyte* text);
|
||||
|
||||
|
||||
// Image manipulation functions
|
||||
|
|
|
|||
|
|
@ -422,6 +422,13 @@ public static unsafe partial class Raylib
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>Generate image: grayscale image from text data</summary>
|
||||
public static Image GenImageText(int width, int height, string text)
|
||||
{
|
||||
using var str1 = text.ToUtf8Buffer();
|
||||
return GenImageText(width, height, str1.AsPointer());
|
||||
}
|
||||
|
||||
/// <summary>Create an image from text (default font)</summary>
|
||||
public static Image ImageText(string text, int fontSize, Color color)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue