Function CanvasItem.drawPrimitive

Draws a custom primitive. 1 point for a point, 2 points for a line, 3 points for a triangle and 4 points for a quad.

void drawPrimitive (
  const(PoolArray!(godot.core.vector2.Vector2)) points,
  const(PoolArray!(godot.core.color.Color)) colors,
  const(PoolArray!(godot.core.vector2.Vector2)) uvs,
  Texture texture = Texture(godot_object(null), ),
  const(double) width = 1.00000,
  Texture normal_map = Texture(godot_object(null), )
) nothrow @nogc;