ABI changes

main
cosmonaut 2022-04-12 17:04:21 -07:00
parent d8b94d539d
commit 4b21707900
1 changed files with 8 additions and 14 deletions

View File

@ -93,9 +93,8 @@ namespace WellspringCS
); );
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Wellspring_GetPixels( public static extern IntPtr Wellspring_GetPixelDataPointer(
IntPtr packer, IntPtr packer
IntPtr pData /* byte array */
); );
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -103,13 +102,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 packer IntPtr packer
); );
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern byte Wellspring_Draw( public static extern byte Wellspring_Draw(
IntPtr textBatch, IntPtr textBatch,
IntPtr packer,
float x, float x,
float y, float y,
float depth, float depth,
@ -119,17 +118,12 @@ namespace WellspringCS
); );
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Wellspring_GetBufferLengths( public static extern void Wellspring_GetBufferData(
IntPtr textBatch, IntPtr textBatch,
out uint vertexCount, out IntPtr vertexDataPointer,
out uint indexCount out uint vertexDataLengthInBytes,
); out IntPtr indexDataPointer,
out uint indexDataLengthInBytes
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Wellspring_GetBuffers(
IntPtr textBatch,
IntPtr vertexBuffer, /* Vertex array */
IntPtr indexBuffer /* uint array */
); );
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]