From b437273f727fb890656c0eed1009d4709b6161dd Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:44:27 +0100 Subject: [PATCH] new Text methods added --- Raylib-cs/interop/Raylib.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index e0ace55..b666079 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -2213,10 +2213,21 @@ public static unsafe partial class Raylib [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern sbyte* TextToPascal(sbyte* text); + /// Get Snake case notation version of provided string + [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern sbyte* TextToSnake(sbyte* text); + + /// Get Camel case notation version of provided string + [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern sbyte* TextToCamel(sbyte* text); + /// Get integer value from text (negative values not supported) [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int TextToInteger(sbyte* text); + /// Get float value from text (negative values not supported) + [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern float TextToFloat(sbyte* text); //------------------------------------------------------------------------------------ // Basic 3d Shapes Drawing Functions (Module: models)