update TextBatch Add call
parent
02d92ea2c0
commit
eda2b92f14
|
@ -1 +1 @@
|
|||
Subproject commit 9d62a80dc7d5f339d5384bfb4d2954087151409c
|
||||
Subproject commit 6e9879505978c6a7f05bc8ee1145587703ede0bf
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue