cause a material color to track the current color
Signature
glColorMaterial(
GLenum (
face
)
,
GLenum (
mode
)
)-> void
Parameters
Variables | Description |
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
{GPL3} OpenGL-Programmable
04-vbo.py
Lines:
272