Simp module

set_scissor

procedure · 2 overloadsSource

Limits drawing to a box, in the coordinates of the current render target.

set_scissor :: (p0: Vector2, p1: Vector2)

Limits drawing to a box, in the coordinates of the current render target.

Parameters

p0: Vector2
one corner of the box.
p1: Vector2
the opposite corner. It must not be left of or below p0.
set_scissor :: (x0: s32, y0: s32, x1: s32, y1: s32)

Limits drawing to a box, in the coordinates of the current render target.

Parameters

x0: s32
left edge.
y0: s32
the edge with the smaller y.
x1: s32
right edge. It must not be less than x0.
y1: s32
the edge with the larger y. It must not be less than y0.

See also