specify the line stipple pattern


glLineStipple( GLint ( factor ) , GLushort ( pattern ) )-> void
glLineStipple( factor , pattern )


Specifies a multiplier for each bit in the line stipple pattern. If factor is 3, for example, each bit in the pattern is used three times before the next bit in the pattern is used. factor is clamped to the range [1, 256] and defaults to 1.
Specifies a 16-bit integer whose bit pattern determines which fragments of a line will be drawn when the line is rasterized. Bit zero is used first; the default pattern is all 1's.

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.

OpenGLContext tests/ Lines: 23
OpenGL-Demo PyOpenGL-Demo/redbook/ Lines: 83, 85, 87, 92, 94, 96, 102, 114
Visvis core/ Lines: 804
Visvis core/ Lines: 660, 696