Function Texture.drawRect

Draws the texture using a CanvasItem with the VisualServer API. Equivalent to VisualServer.canvasItemAddTextureRect.

void drawRect (
  const(RID) canvas_item,
  const(Rect2) rect,
  const(bool) tile,
  const(Color) modulate = Color(0.00000F, 0.00000F, 0.00000F, 1.00000F, ).this(1.00000F, 1.00000F, 1.00000F, 1.00000F),
  const(bool) transpose = false,
  Texture normal_map = Texture(godot_object(null), )
) nothrow @nogc const;