Set Clip
Purpose
The Set Clip function selects an aligned rectangular region of logical coordinate space outside of which no primitives are rendered. The function effects geometry which follows in the code.
Syntax
Opcode format | Opcode | Operand Format | Comments |
Extended ASCII | (Clip | [<ws><IX1>,<IY1><ws><IX2>,<IY2>[<ws>]]) | Selects a clip region. |
X1,Y1 The lower-left corner of a rectangle in logical coordinate space outside of which subsequent geometric primitives are not rendered
X2,Y2 The upper-right corner of the clip region
Details
The Clip opcode specifies the current clipping-region attribute to be applied to subsequent geometric primitives; and, it prevents the rendering of pixels outside that region.
To deactivate clipping, the clip opcode is presented without any arguments:
(Clip)
Notes
Non-rectangular clip regions may be handled, though inefficiently, by setting multiple clip regions in a sequence and rerendering the contained primitives.
Default
By default no clipping is performed and the entire logical coordinate space may be viewed, which is equivalent to the following:
(Clip)
Implementation in WHIP! Versions
Toolkit Function |
TBD |
Partial |
Full |
Revised in |
Set Clip |
- |
- |
- |
- |
See Also