Fix bug with incorrect DrawTriangleStrip parameter
- It should take Vector2[] instead of a ref to Vector2 since it operates on multiple points.
This commit is contained in:
parent
06d092d462
commit
be43e6c76c
1 changed files with 1 additions and 1 deletions
|
|
@ -1640,7 +1640,7 @@ namespace Raylib_cs
|
||||||
|
|
||||||
// Draw a triangle strip defined by points
|
// Draw a triangle strip defined by points
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void DrawTriangleStrip(ref Vector2 points, int pointsCount, Color color);
|
public static extern void DrawTriangleStrip(Vector2[] points, int pointsCount, Color color);
|
||||||
|
|
||||||
// Draw a regular polygon (Vector version)
|
// Draw a regular polygon (Vector version)
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue