update TextBatch Add call
parent
16b96d533a
commit
b24b8a3869
|
@ -1 +1 @@
|
||||||
Subproject commit 9d62a80dc7d5f339d5384bfb4d2954087151409c
|
Subproject commit 6e9879505978c6a7f05bc8ee1145587703ede0bf
|
|
@ -45,10 +45,7 @@ namespace MoonWorks.Graphics.Font
|
||||||
|
|
||||||
public unsafe bool Add(
|
public unsafe bool Add(
|
||||||
string text,
|
string text,
|
||||||
float x,
|
|
||||||
float y,
|
|
||||||
int pixelSize,
|
int pixelSize,
|
||||||
float depth,
|
|
||||||
Color color,
|
Color color,
|
||||||
HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left,
|
HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left,
|
||||||
VerticalAlignment verticalAlignment = VerticalAlignment.Baseline
|
VerticalAlignment verticalAlignment = VerticalAlignment.Baseline
|
||||||
|
@ -64,12 +61,9 @@ namespace MoonWorks.Graphics.Font
|
||||||
{
|
{
|
||||||
System.Text.Encoding.UTF8.GetBytes(chars, text.Length, StringBytes, byteCount);
|
System.Text.Encoding.UTF8.GetBytes(chars, text.Length, StringBytes, byteCount);
|
||||||
|
|
||||||
var result = Wellspring.Wellspring_Draw(
|
var result = Wellspring.Wellspring_AddToTextBatch(
|
||||||
Handle,
|
Handle,
|
||||||
x,
|
|
||||||
y,
|
|
||||||
pixelSize,
|
pixelSize,
|
||||||
depth,
|
|
||||||
new Wellspring.Color { R = color.R, G = color.G, B = color.B, A = color.A },
|
new Wellspring.Color { R = color.R, G = color.G, B = color.B, A = color.A },
|
||||||
(Wellspring.HorizontalAlignment) horizontalAlignment,
|
(Wellspring.HorizontalAlignment) horizontalAlignment,
|
||||||
(Wellspring.VerticalAlignment) verticalAlignment,
|
(Wellspring.VerticalAlignment) verticalAlignment,
|
||||||
|
|
Loading…
Reference in New Issue