Glmaterials - HP b2600 Reference Manual

Opengl 1.1 reference
Hide thumbs Also See for b2600:
Table of Contents

Advertisement

glMaterials

glMaterialf, glMateriali, glMaterialfv, glMaterialiv: specify material
parameters for the lighting model.
C Specification
void glMaterialf(
void glMateriali(
void glMaterialfv(
void glMaterialiv(
Parameters
face
pname
param
face
pname
params
Description
glMaterial assigns values to material parameters. There are two matched sets of
material parameters. One, the front-facing set, is used to shade points, lines, bitmaps,
and all polygons (when two-sided lighting is disabled), or just front-facing polygons
(when two-sided lighting is enabled). The other set, back-facing, is used to shade
back-facing polygons only when two-sided lighting is enabled. Refer to the glLightModel
reference page for details concerning one- and two-sided lighting calculations.
Chapter 11
GLenum face,
GLenum pname,
GLfloat param)
GLenum face,
GLenum pname,
GLint param)
GLenum face,
GLenum pname,
const GLfloat *params)
GLenum face,
GLenum pname,
const GLint *params)
Specifies which face or faces are being updated. Must be one of
GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
Specifies the single-valued material parameter of the face or faces that
is being updated. Must be GL_SHININESS.
Specifies the value that parameter GL_SHININESS will be set to.
Specifies which face or faces are being updated. Must be one of
GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
Specifies the material parameter of the face or faces that is being
updated. Must be one of GL_AMBIENT, GL_DIFFUSE,
GL_SPECULAR, GL_EMISSION, GL_SHININESS,
GL_AMBIENT_AND_DIFFUSE, or GL_COLOR_INDEXES.
Specifies a pointer to the value or values that pname will be set to.
M
glMaterials
285

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents