glShadeModel

select flat or smooth shading

Signature

glShadeModel( GLenum ( mode ) )-> void
glShadeModel( mode )

Parameters

VariablesDescription
mode
Specifies a symbolic value representing a shading technique. Accepted values are GL_FLAT and GL_SMOOTH . The initial value is GL_SMOOTH .

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.

glShadeModel
OpenGLContext tests/shadow_1.py Lines: 468
OpenGLContext tests/redbook_alpha.py Lines: 80
OpenGLContext OpenGLContext/scenegraph/gear.py Lines: 87, 163
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 50, 61
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 29
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 25, 101
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 49
OpenGL-Demo PyOpenGL-Demo/dek/tile.py Lines: 69
OpenGL-Demo PyOpenGL-Demo/dek/texturesurf.py Lines: 89
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 168
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 86
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 72
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 64
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 67
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 80
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 63
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 184
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 53
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 88
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 92
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 66
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 53
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 53
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 115
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 112
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 361
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 123
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 62
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 35
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 38
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 53
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 58
OpenGL-Demo py2exe-example/shader_test.py Lines: 30
Glinter Widget.py Lines: 48, 578
{Artistic License} PymmLib applications/glutviewer.py Lines: 182
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 156
pyBzEdit pyBzEdit.py Lines: 435, 443
{LGPL} PyUI tests/testcube.py Lines: 73
{LGPL} Pyggel pyggel/view.py Lines: 164
{LGPL} pygl2d pygl2d/window.py Lines: 59
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 38
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 58
Visvis core/axes.py Lines: 971
Visvis wobjects/polygonalModeling.py Lines: 1015, 1017, 1078