Implement Managed Code Friendly version of CheckCollisionPointPoly (#268)
This commit is contained in:
parent
b26e4f73d1
commit
8f2902aca0
1 changed files with 8 additions and 0 deletions
|
|
@ -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>
|
||||
public static Image GenImageText(int width, int height, string text)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue