Simp module

set_scissor

procedure2 overloadsSource

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

Example
set_scissor(.{10, 10}, .{110, 60});
// ... draw: only this box shows ...
clear_scissor();

This one is only checked to compile, not run.

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.
Example
set_scissor(.{10, 10}, .{110, 60});
// ... draw: only this box shows ...
clear_scissor();

This one is only checked to compile, not run.

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.
Example
set_scissor(10, 10, 110, 60);
clear_scissor();

This one is only checked to compile, not run.

See also