Function Texture.drawRectRegion
Draws a part of the texture using a CanvasItem
with the VisualServer
API. Equivalent to VisualServer
.
void drawRectRegion
(
const(RID) canvas_item,
const(Rect2) rect,
const(Rect2) src_rect,
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), ),
const(bool) clip_uv = true
) nothrow @nogc const;