2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-15 14:54:44 -04:00

Implement Managed Code Friendly version of CheckCollisionPointPoly (#268)

This commit is contained in:
Alexander Baggett 2024-09-13 14:56:45 -05:00 committed by GitHub
parent b26e4f73d1
commit 8f2902aca0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,6 +422,14 @@ public static unsafe partial class Raylib
} }
} }
public static CBool CheckCollisionPointPoly(Vector2 point, Vector2[] points)
{
fixed (Vector2* p = points)
{
return CheckCollisionPointPoly(point, p, points.Length);
}
}
/// <summary>Generate image: grayscale image from text data</summary> /// <summary>Generate image: grayscale image from text data</summary>
public static Image GenImageText(int width, int height, string text) public static Image GenImageText(int width, int height, string text)
{ {