glCoreClipPush - part-cw/lambdanative GitHub Wiki
(glCoreClipPush . coords)
glCoreClipPush manages a clip stack, it is used to crop textures. glCoreClipPop
points to the same function
Parameter | Description |
---|---|
coords | Optional: Coordinates x1 y1 x2 y2 |
Example
Example 1: As used in (modules/ln_glgui/numberwheel.scm) to apply cropping to numbers/images/strings on wheel
(glCoreClipPush (fl+ (flo wheelx) 3.0) (flo wheely)
(fl+ (fl- (flo wheelx) 5.0) (flo wheelw)) (fl+ (flo wheely) (flo wheelh)))