drawTexturePoly function

void drawTexturePoly(
  1. Texture2D texture,
  2. Vector2 center,
  3. List<Vector2> points,
  4. List<Vector2> texcoords,
  5. int pointsCount,
  6. Color tint,
)

Draw a textured polygon.

Implementation

void drawTexturePoly(
  Texture2D texture,
  Vector2 center,
  List<Vector2> points,
  List<Vector2> texcoords,
  int pointsCount,
  Color tint,
) {
  return library.DrawTexturePoly(
    texture.ref,
    center.ref,
    vector2.toPointer(points),
    vector2.toPointer(texcoords),
    pointsCount,
    tint.ref,
  );
}