glPolygonOffset

set the scale and units used to calculate depth values

Signature

glPolygonOffset( GLfloat ( factor ) , GLfloat ( units ) )-> void
glPolygonOffset( factor , units )

Parameters

VariablesDescription
factor
Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0.
units
Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0.

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.

glPolygonOffset
OpenGLContext tests/shadow_1.py Lines: 452
{LGPL} VisionEgg VisionEgg/Gratings.py Lines: 643