glPolygonMode

select a polygon rasterization mode

Signature

glPolygonMode( GLenum ( face ) , GLenum ( mode ) )-> void
glPolygonMode( face , mode )

Parameters

VariablesDescription
face
Specifies the polygons that mode applies to. Must be GL_FRONT_AND_BACK for front- and back-facing polygons.
mode
Specifies how polygons will be rasterized. Accepted values are GL_POINT , GL_LINE , and GL_FILL . The initial value is GL_FILL for both front- and back-facing polygons.

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.

glPolygonMode
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 37, 38
Glinter Widget.py Lines: 723, 726, 727
{LGPL} VisionEgg VisionEgg/MoreStimuli.py Lines: 164, 173, 373, 386, 511, 524
{LGPL} Pyggel pyggel/misc.py Lines: 30, 41
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Progress3D.py Lines: 147, 172
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/ProgressBar.py Lines: 100, 125
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/ProgressBar.py Lines: 109, 133
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Progress3D.py Lines: 147, 172
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/ProgressBar.py Lines: 100, 125
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/ProgressBar.py Lines: 109, 133
Visvis wobjects/polygonalModeling.py Lines: 905, 909, 918, 923