From 5308b547d49ae3b4b960cfd5dae7ffd373886ca4 Mon Sep 17 00:00:00 2001
From: JupiterRider <60042618+JupiterRider@users.noreply.github.com>
Date: Fri, 6 Dec 2024 18:20:49 +0100
Subject: [PATCH] GetShapesTexture() and GetShapesTextureRectangle() added
---
Raylib-cs/interop/Raylib.cs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs
index d31e205..81a40f0 100644
--- a/Raylib-cs/interop/Raylib.cs
+++ b/Raylib-cs/interop/Raylib.cs
@@ -1020,6 +1020,14 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetShapesTexture(Texture2D texture, Rectangle source);
+ // Get texture that is used for shapes drawing
+ [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
+ public static extern Texture2D GetShapesTexture();
+
+ // Get texture source rectangle that is used for shapes drawing
+ [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
+ public static extern Rectangle GetShapesTextureRectangle();
+
// Basic shapes drawing functions
/// Draw a pixel