Cogl.Framebuffer.prototype.push_scissor_clip
function push_scissor_clip(x: Number(gint), y: Number(gint), width: Number(gint), height: Number(gint)): void { // Gjs wrapper for cogl_framebuffer_push_scissor_clip() }
Specifies a rectangular clipping area for all subsequent drawing operations. Any drawing commands that extend outside the rectangle will be clipped so that only the portion inside the rectangle will be displayed. The rectangle dimensions are not transformed by the current model-view matrix.
The rectangle is intersected with the current clip region. To undo the effect of this function, call Cogl.Framebuffer.prototype.pop_clip.
Since 1.10
- x
left edge of the clip rectangle in window coordinates
- y
top edge of the clip rectangle in window coordinates
- width
width of the clip rectangle
- height
height of the clip rectangle