update TextBatch Add call

pull/52/head
cosmonaut 2023-12-09 17:41:08 -08:00
parent 16b96d533a
commit b24b8a3869
2 changed files with 2 additions and 8 deletions

@ -1 +1 @@
Subproject commit 9d62a80dc7d5f339d5384bfb4d2954087151409c
Subproject commit 6e9879505978c6a7f05bc8ee1145587703ede0bf

View File

@ -45,10 +45,7 @@ namespace MoonWorks.Graphics.Font
public unsafe bool Add(
string text,
float x,
float y,
int pixelSize,
float depth,
Color color,
HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left,
VerticalAlignment verticalAlignment = VerticalAlignment.Baseline
@ -64,12 +61,9 @@ namespace MoonWorks.Graphics.Font
{
System.Text.Encoding.UTF8.GetBytes(chars, text.Length, StringBytes, byteCount);
var result = Wellspring.Wellspring_Draw(
var result = Wellspring.Wellspring_AddToTextBatch(
Handle,
x,
y,
pixelSize,
depth,
new Wellspring.Color { R = color.R, G = color.G, B = color.B, A = color.A },
(Wellspring.HorizontalAlignment) horizontalAlignment,
(Wellspring.VerticalAlignment) verticalAlignment,