From 889d2844885133db0db531faf83438a4c7057713 Mon Sep 17 00:00:00 2001
From: MrScautHD <65916181+MrScautHD@users.noreply.github.com>
Date: Sat, 17 May 2025 10:44:26 +0200
Subject: [PATCH] Revert "Add DrawTexturePoly"
---
src/Raylib-CSharp/Apis/RaylibApi.cs | 13 -------------
src/Raylib-CSharp/Rendering/Graphics.cs | 11 +----------
2 files changed, 1 insertion(+), 23 deletions(-)
diff --git a/src/Raylib-CSharp/Apis/RaylibApi.cs b/src/Raylib-CSharp/Apis/RaylibApi.cs
index b13d0ef..5149007 100644
--- a/src/Raylib-CSharp/Apis/RaylibApi.cs
+++ b/src/Raylib-CSharp/Apis/RaylibApi.cs
@@ -1737,19 +1737,6 @@ internal static partial class RaylibApi {
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint);
- ///
- /// Draw a textured polygon.
- ///
- /// The texture to be drawn.
- /// Center position of the polygon.
- /// Polygon vertex coordinates.
- /// Texture UV coordinates for each vertex.
- /// Number of vertices in the polygon.
- /// The color tint of the texture.
- [LibraryImport(Raylib.Name)]
- [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
- internal static unsafe partial void DrawTexturePoly(Texture2D texture, Vector2 center, Vector2* points, Vector2* texcoords, int pointCount, Color tint);
-
/* --------------------------------- Vr --------------------------------- */
///
diff --git a/src/Raylib-CSharp/Rendering/Graphics.cs b/src/Raylib-CSharp/Rendering/Graphics.cs
index e20717d..9631b90 100644
--- a/src/Raylib-CSharp/Rendering/Graphics.cs
+++ b/src/Raylib-CSharp/Rendering/Graphics.cs
@@ -277,7 +277,7 @@ public static void DrawModelEx(Model model, Vector3 position, Vector3 rotationAx
public static void DrawModelPoints(Model model, Vector3 position, float scale, Color tint) {
RaylibApi.DrawModelPoints(model, position, scale, tint);
}
-
+
///
public static void DrawModelPointsEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) {
RaylibApi.DrawModelPointsEx(model, position, rotationAxis, rotationAngle, scale, tint);
@@ -597,13 +597,4 @@ public static void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle
public static void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) {
RaylibApi.DrawTextureNPatch(texture, nPatchInfo, dest, origin, rotation, tint);
}
-
- ///
- public static unsafe void DrawTexturePoly(Texture2D texture, Vector2 center, Span points, Span texcoords, int pointCount, Color tint) {
- fixed (Vector2* pointsPtr = points)
- fixed (Vector2* texcoordsPtr = texcoords) {
- RaylibApi.DrawTexturePoly(texture, center, pointsPtr, texcoordsPtr, pointCount, tint);
-
- }
- }
}