CanvasItem.drawTextureRectRegion

Draws a textured rectangle region at a given position, optionally modulated by a color. If transpose is true, the texture will have its X and Y coordinates swapped.

struct CanvasItem
@nogc nothrow
void
drawTextureRectRegion
(,
in Rect2 rect
,
in Rect2 src_rect
,
in Color modulate = Color(1, 1, 1, 1)
,
in bool transpose = false
,,
in bool clip_uv = true
)

Meta