From 4b21707900c6d75184f0d5373a0676fe31da956b Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 12 Apr 2022 17:04:21 -0700 Subject: [PATCH] ABI changes --- WellspringCS.cs | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/WellspringCS.cs b/WellspringCS.cs index 9eff71f..d591f0a 100644 --- a/WellspringCS.cs +++ b/WellspringCS.cs @@ -93,9 +93,8 @@ namespace WellspringCS ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void Wellspring_GetPixels( - IntPtr packer, - IntPtr pData /* byte array */ + public static extern IntPtr Wellspring_GetPixelDataPointer( + IntPtr packer ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -103,13 +102,13 @@ namespace WellspringCS [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void Wellspring_StartTextBatch( + IntPtr textBatch, IntPtr packer ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern byte Wellspring_Draw( IntPtr textBatch, - IntPtr packer, float x, float y, float depth, @@ -119,17 +118,12 @@ namespace WellspringCS ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void Wellspring_GetBufferLengths( + public static extern void Wellspring_GetBufferData( IntPtr textBatch, - out uint vertexCount, - out uint indexCount - ); - - [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void Wellspring_GetBuffers( - IntPtr textBatch, - IntPtr vertexBuffer, /* Vertex array */ - IntPtr indexBuffer /* uint array */ + out IntPtr vertexDataPointer, + out uint vertexDataLengthInBytes, + out IntPtr indexDataPointer, + out uint indexDataLengthInBytes ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]