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...
L
glLight
Chapter 10
250
glLight
glLightf, glLighti, glLightfv, glLightiv: set light source parameters.
C Specification
void glLightf(
GLenum light,
GLenum pname,
GLfloat param)
void glLighti(
GLenum light,
GLenum pname,
GLint param)
void glLightfv(
GLenum light,
GLenum pname,
const GLfloat *params)
void glLightiv(
GLenum light,
GLenum pname,
const GLint *params)
Parameters
light Specifies a light. The number of lights depends on the implementation,
but at least eight lights are supported. They are identified by symbolic
names of the form GL_LIGHTi where 0 i < GL_MAX_LIGHTS.
pname Specifies a single-valued light source parameter for light.
GL_SPOT_EXPONENT, GL_SPOT_CUTOFF,
GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION,
and GL_QUADRATIC_ATTENUATION are accepted.
param Specifies the value that parameter pname of light source light will be
set to.
light Specifies a light. The number of lights depends on the implementation,
but at least eight lights are supported. They are identified by symbolic
names of the form GL_LIGHTi where 0 i < GL_MAX_LIGHTS.
pname Specifies a light source parameter for light. GL_AMBIENT,
GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_CUTOFF,
GL_SPOT_DIRECTION, GL_SPOT_EXPONENT,
GL_CONSTANT_ATTENUATION,GL_LINEAR_ATTENUATION,and
GL_QUADRATIC_ATTENUATION are accepted.
params Specifies a pointer to the value or values that parameter pname of
light source light will be set to.

Table of Contents

Other manuals for HP b2600

Related product manuals