glColorMaterial

cause a material color to track the current color

Signature

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

Parameters

VariablesDescription
face
Specifies whether front, back, or both front and back material parameters should track the current color. Accepted values are GL_FRONT , GL_BACK , and GL_FRONT_AND_BACK . The initial value is GL_FRONT_AND_BACK .
mode
Specifies which of several material parameters track the current color. Accepted values are GL_EMISSION , GL_AMBIENT , GL_DIFFUSE , GL_SPECULAR , and GL_AMBIENT_AND_DIFFUSE . The initial value is GL_AMBIENT_AND_DIFFUSE .

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.

glColorMaterial
OpenGLContext OpenGLContext/scenegraph/pointset.py Lines: 64
OpenGLContext OpenGLContext/scenegraph/indexedpolygons.py Lines: 26, 75
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 64
Glinter Widget.py Lines: 47, 567
{LGPL} PyMT pymt/obj.py Lines: 21, 53
{LGPL} Pyggel pyggel/view.py Lines: 160
Visvis wobjects/polygonalModeling.py Lines: 984
{GPL3} OpenGL-Programmable 01-direct.py Lines: 242
{GPL3} OpenGL-Programmable 03-array.py Lines: 253
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 251
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 272