@@ -4515,6 +4515,67 @@ internal static partial class RaylibApi {
45154515 [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
45164516 internal static partial void ImageDrawRectangleLines ( ref Image dst , Rectangle rec , int thick , Color color ) ;
45174517
4518+ /// <summary>
4519+ /// Draw triangle within an image.
4520+ /// </summary>
4521+ /// <param name="dst">The destination image on which to draw the triangle.</param>
4522+ /// <param name="v1">The first vertex of the triangle.</param>
4523+ /// <param name="v2">The second vertex of the triangle.</param>
4524+ /// <param name="v3">The third vertex of the triangle.</param>
4525+ /// <param name="color">The color of the filled triangle.</param>
4526+ [ LibraryImport ( Raylib . Name ) ]
4527+ [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
4528+ internal static partial void ImageDrawTriangle ( ref Image dst , Vector2 v1 , Vector2 v2 , Vector2 v3 , Color color ) ;
4529+
4530+ /// <summary>
4531+ /// Draw triangle with interpolated colors within an image.
4532+ /// </summary>
4533+ /// <param name="dst">The image on which to draw the triangle.</param>
4534+ /// <param name="v1">The first vertex of the triangle.</param>
4535+ /// <param name="v2">The second vertex of the triangle.</param>
4536+ /// <param name="v3">The third vertex of the triangle.</param>
4537+ /// <param name="c1">The color of the first vertex.</param>
4538+ /// <param name="c2">The color of the second vertex.</param>
4539+ /// <param name="c3">The color of the third vertex.</param>
4540+ [ LibraryImport ( Raylib . Name ) ]
4541+ [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
4542+ internal static partial void ImageDrawTriangleEx ( ref Image dst , Vector2 v1 , Vector2 v2 , Vector2 v3 , Color c1 , Color c2 , Color c3 ) ;
4543+
4544+ /// <summary>
4545+ /// Draw triangle outline within an image.
4546+ /// </summary>
4547+ /// <param name="dst">The image on which to draw the triangle.</param>
4548+ /// <param name="v1">The first vertex of the triangle.</param>
4549+ /// <param name="v2">The second vertex of the triangle.</param>
4550+ /// <param name="v3">The third vertex of the triangle.</param>
4551+ /// <param name="color">The color of the triangle outline.</param>
4552+ [ LibraryImport ( Raylib . Name ) ]
4553+ [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
4554+ internal static partial void ImageDrawTriangleLines ( ref Image dst , Vector2 v1 , Vector2 v2 , Vector2 v3 , Color color ) ;
4555+
4556+
4557+ /// <summary>
4558+ /// Draw a triangle fan defined by points within an image (first vertex is the center).
4559+ /// </summary>
4560+ /// <param name="dst">The destination image.</param>
4561+ /// <param name="points">A pointer to an array of Vector2 points defining the vertices of the triangle fan.</param>
4562+ /// <param name="pointCount">The number of points in the array.</param>
4563+ /// <param name="color">The color of the filled triangle fan.</param>
4564+ [ LibraryImport ( Raylib . Name ) ]
4565+ [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
4566+ internal static unsafe partial void ImageDrawTriangleFan ( ref Image dst , Vector2 * points , int pointCount , Color color ) ;
4567+
4568+ /// <summary>
4569+ /// Draw a triangle strip defined by points within an image.
4570+ /// </summary>
4571+ /// <param name="dst">The destination image.</param>
4572+ /// <param name="points">A pointer to an array of Vector2 points.</param>
4573+ /// <param name="pointCount">The number of points in the array.</param>
4574+ /// <param name="color">The color of the triangle strip.</param>
4575+ [ LibraryImport ( Raylib . Name ) ]
4576+ [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
4577+ internal static unsafe partial void ImageDrawTriangleStrip ( ref Image dst , Vector2 * points , int pointCount , Color color ) ;
4578+
45184579 /// <summary>
45194580 /// Draw a source image within a destination image (tint applied to source).
45204581 /// </summary>
@@ -5257,6 +5318,26 @@ internal static partial class RaylibApi {
52575318 [ return : MarshalUsing ( typeof ( NonFreeUtf8StringMarshaller ) ) ]
52585319 internal static partial string TextToPascal ( string text ) ;
52595320
5321+ /// <summary>
5322+ /// Get Snake case notation version of provided string.
5323+ /// </summary>
5324+ /// <param name="text">The text to be converted.</param>
5325+ /// <returns>The converted text in snake case.</returns>
5326+ [ LibraryImport ( Raylib . Name , StringMarshalling = StringMarshalling . Utf8 ) ]
5327+ [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
5328+ [ return : MarshalUsing ( typeof ( NonFreeUtf8StringMarshaller ) ) ]
5329+ internal static partial string TextToSnake ( string text ) ;
5330+
5331+ /// <summary>
5332+ /// Get Camel case notation version of provided string.
5333+ /// </summary>
5334+ /// <param name="text">The text string to convert.</param>
5335+ /// <returns>The text string converted to camel case.</returns>
5336+ [ LibraryImport ( Raylib . Name , StringMarshalling = StringMarshalling . Utf8 ) ]
5337+ [ UnmanagedCallConv ( CallConvs = [ typeof ( CallConvCdecl ) ] ) ]
5338+ [ return : MarshalUsing ( typeof ( NonFreeUtf8StringMarshaller ) ) ]
5339+ internal static partial string TextToCamel ( string text ) ;
5340+
52605341 /// <summary>
52615342 /// Get integer value from text (negative values not supported).
52625343 /// </summary>
0 commit comments