cause a material color to track the current color


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


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 .
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.

OpenGLContext OpenGLContext/scenegraph/ Lines: 64
OpenGLContext OpenGLContext/scenegraph/ Lines: 26, 75
OpenGL-Demo PyOpenGL-Demo/GLE/ Lines: 64
Glinter Lines: 47, 567
{LGPL} PyMT pymt/ Lines: 21, 53
{LGPL} Pyggel pyggel/ Lines: 160
Visvis wobjects/ Lines: 984
{GPL3} OpenGL-Programmable Lines: 242
{GPL3} OpenGL-Programmable Lines: 253
{GPL3} OpenGL-Programmable Lines: 251
{GPL3} OpenGL-Programmable Lines: 272