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:
parent
b26e4f73d1
commit
8f2902aca0
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user