Update Raylib.Utils.cs
This commit is contained in:
parent
1ff9371ba4
commit
e8b8f20edf
1 changed files with 4 additions and 2 deletions
|
|
@ -425,8 +425,10 @@ public static unsafe partial class Raylib
|
|||
|
||||
public static CBool CheckCollisionPointPoly(Vector2 point, Vector2[] points)
|
||||
{
|
||||
var pointsPtr = (Vector2*)Unsafe.AsPointer<Vector2>(ref MemoryMarshal.GetArrayDataReference(points));
|
||||
return CheckCollisionPointPoly(point, pointsPtr, points.Length);
|
||||
fixed (Vector2* pointsPtr = &MemoryMarshal.GetArrayDataReference(points))
|
||||
{
|
||||
return CheckCollisionPointPoly(point, pointsPtr, points.Length);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Generate image: grayscale image from text data</summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue