glScissor

define the scissor box

Signature

glScissor( GLint ( x ) , GLint ( y ) , GLsizei ( width ) , GLsizei ( height ) )-> void
glScissor( x , y , width , height )

Parameters

VariablesDescription
x, y
Specify the lower left corner of the scissor box. Initially (0, 0).
width, height
Specify the width and height of the scissor box. When a GL context is first attached to a window, width and height are set to the dimensions of that window.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glScissor
OpenGLContext OpenGLContext/passes/flatcore.py Lines: 238
OpenGLContext OpenGLContext/passes/_flat.py Lines: 516
OpenGLContext OpenGLContext/passes/flatcompat.py Lines: 254
{LGPL} PyUI pyui/renderers/openglBase.py Lines: 262
{LGPL} PyUI2 renderers/openglBase.py Lines: 262
{LGPL} Pyggel pyggel/view.py Lines: 80, 97