145. opengl.gl
— OpenGL access functions¶
All calls to opengl functions are collected here, so we can easily select different gl engines.
145.1. Functions defined in module opengl.gl¶
- opengl.gl.gl_viewport()[source]¶
Return the current OpenGL Viewport
Returns a tuple x,y,w,h specifying the position and size of the current OpenGL viewport (in pixels).
- opengl.gl.gl_linestipple(factor, pattern)[source]¶
Set the line stipple pattern.
When drawing lines, OpenGl can use a stipple pattern. The stipple is defined by two values: a pattern (on/off) of maximum 16 bits, used on the pixel level, and a multiplier factor for each bit.
If factor <= 0, the stippling is disabled.