Update Raylib.Utils.cs
This commit is contained in:
parent
b018ab7d5b
commit
66ecc58354
1 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Raylib_cs;
|
||||
|
|
@ -422,6 +423,12 @@ 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);
|
||||
}
|
||||
|
||||
/// <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