msdf testing

pull/1/head
cosmonaut 2023-12-06 17:33:41 -08:00
parent f8872bae59
commit 0ffacd6aec
1 changed files with 5 additions and 30 deletions

View File

@ -101,29 +101,9 @@ namespace WellspringCS
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Wellspring_CreateFont(
IntPtr fontBytes,
uint fontBytesLength
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Wellspring_CreatePacker(
IntPtr Font,
float fontSize,
uint width,
uint height,
uint strideInBytes,
uint padding
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern uint Wellspring_PackFontRanges(
IntPtr packer,
IntPtr ranges, /* FontRange array */
uint numRanges
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Wellspring_GetPixelDataPointer(
IntPtr packer
uint fontBytesLength,
IntPtr atlasJsonBytes,
uint atlasJsonBytesLength
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -132,12 +112,12 @@ namespace WellspringCS
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Wellspring_StartTextBatch(
IntPtr textBatch,
IntPtr packer
IntPtr font
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern byte Wellspring_TextBounds(
IntPtr packer,
IntPtr font,
float x,
float y,
HorizontalAlignment horizontalAlignment,
@ -175,11 +155,6 @@ namespace WellspringCS
IntPtr textBatch
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Wellspring_DestroyPacker(
IntPtr packer
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Wellspring_DestroyFont(
IntPtr font