Watch
2
0
Fork
You've already forked raylib-cs
0

GetShapesTexture() and GetShapesTextureRectangle() added

This commit is contained in:
JupiterRider 2024-12-06 18:20:49 +01:00
commit 5308b547d4

View file

@ -1020,6 +1020,14 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetShapesTexture(Texture2D texture, Rectangle source); public static extern void SetShapesTexture(Texture2D texture, Rectangle source);
// <summary>Get texture that is used for shapes drawing</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Texture2D GetShapesTexture();
// <summary>Get texture source rectangle that is used for shapes drawing</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Rectangle GetShapesTextureRectangle();
// Basic shapes drawing functions // Basic shapes drawing functions
/// <summary>Draw a pixel</summary> /// <summary>Draw a pixel</summary>