EasyManua.ls Logo

HP b2600

HP b2600
486 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
M
glMaterials
Chapter 11
287
params contains three integer or floating-point values specifying the color indices for
ambient, diffuse, and specular lighting. These three values, and GL_SHININESS, are
the only material values used by the color index mode lighting equation. Refer to the
glLightModel reference page for a discussion of color index lighting.
Notes
The material parameters can be updated at any time. In particular, glMaterial can be
called between a call to glBegin and the corresponding call to glEnd. If only a single
material parameter is to be changed per vertex, however, glColorMaterial is preferred
over glMaterial (see glColorMaterial).
Errors
GL_INVALID_ENUM is generated if either face or pname is not an accepted value.
GL_INVALID_VALUE is generated if a specular exponent outside the range [0,128]
is specified.
Associated Gets
glGetMaterial
See Also
glColorMaterial,
glLight,
glLightModel

Table of Contents

Other manuals for HP b2600

Related product manuals