glLineStipple

specify the line stipple pattern

Signature

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

Parameters

VariablesDescription
factor
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.
pattern
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.

glLineStipple
OpenGLContext tests/line_stipple.py Lines: 23
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 83, 85, 87, 92, 94, 96, 102, 114
Visvis core/axises.py Lines: 804
Visvis core/line.py Lines: 660, 696