parent
f8872bae59
commit
b01ef602a0
|
@ -101,29 +101,11 @@ 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)]
|
out float pixelsPerEm,
|
||||||
public static extern IntPtr Wellspring_CreatePacker(
|
out float distanceRange
|
||||||
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,14 +114,13 @@ 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,
|
int pixelSize,
|
||||||
float y,
|
|
||||||
HorizontalAlignment horizontalAlignment,
|
HorizontalAlignment horizontalAlignment,
|
||||||
VerticalAlignment verticalAlignment,
|
VerticalAlignment verticalAlignment,
|
||||||
IntPtr strBytes, /* UTF-8 bytes */
|
IntPtr strBytes, /* UTF-8 bytes */
|
||||||
|
@ -148,11 +129,9 @@ namespace WellspringCS
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern byte Wellspring_Draw(
|
public static extern byte Wellspring_AddToTextBatch(
|
||||||
IntPtr textBatch,
|
IntPtr textBatch,
|
||||||
float x,
|
int pixelSize,
|
||||||
float y,
|
|
||||||
float depth,
|
|
||||||
in Color color,
|
in Color color,
|
||||||
HorizontalAlignment horizontalAlignment,
|
HorizontalAlignment horizontalAlignment,
|
||||||
VerticalAlignment verticalAlignment,
|
VerticalAlignment verticalAlignment,
|
||||||
|
@ -175,11 +154,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