msdf testing
parent
f8872bae59
commit
0ffacd6aec
|
@ -101,29 +101,9 @@ namespace WellspringCS
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Wellspring_CreateFont(
|
public static extern IntPtr Wellspring_CreateFont(
|
||||||
IntPtr fontBytes,
|
IntPtr fontBytes,
|
||||||
uint fontBytesLength
|
uint fontBytesLength,
|
||||||
);
|
IntPtr atlasJsonBytes,
|
||||||
|
uint atlasJsonBytesLength
|
||||||
[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
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -132,12 +112,12 @@ namespace WellspringCS
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Wellspring_StartTextBatch(
|
public static extern void Wellspring_StartTextBatch(
|
||||||
IntPtr textBatch,
|
IntPtr textBatch,
|
||||||
IntPtr packer
|
IntPtr font
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern byte Wellspring_TextBounds(
|
public static extern byte Wellspring_TextBounds(
|
||||||
IntPtr packer,
|
IntPtr font,
|
||||||
float x,
|
float x,
|
||||||
float y,
|
float y,
|
||||||
HorizontalAlignment horizontalAlignment,
|
HorizontalAlignment horizontalAlignment,
|
||||||
|
@ -175,11 +155,6 @@ namespace WellspringCS
|
||||||
IntPtr textBatch
|
IntPtr textBatch
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
|
||||||
public static extern void Wellspring_DestroyPacker(
|
|
||||||
IntPtr packer
|
|
||||||
);
|
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Wellspring_DestroyFont(
|
public static extern void Wellspring_DestroyFont(
|
||||||
IntPtr font
|
IntPtr font
|
||||||
|
|
Loading…
Reference in New Issue