From 0ffacd6aec80d94cf45a871bd50c9a9321f4ec0d Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 6 Dec 2023 17:33:41 -0800 Subject: [PATCH] msdf testing --- WellspringCS.cs | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/WellspringCS.cs b/WellspringCS.cs index ea4d0df..7aea1fe 100644 --- a/WellspringCS.cs +++ b/WellspringCS.cs @@ -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