EasyManuals Logo
Home>HP>Desktop>b2600

HP b2600 Reference Guide

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
Page #254 background imageLoading...
Page #254 background image
L
glLightModel
Chapter 10
254
glLightModel
glLightModelf, glLightModeli, glLightModelfv, glLightModeliv: set the
lighting model parameters.
C Specification
void glLightModelf(
GLenum pname,
GLfloat param)
void glLightModeli(
GLenum pname,
GLint param)
void glLightModelfv(
GLenum pname,
const GLfloat *params)
void glLightModeliv(
GLenum pname,
const GLint *params)
Parameters
pname Specifies a single-valued lighting model parameter.
GL_LIGHT_MODEL_LOCAL_VIEWER and
GL_LIGHT_MODEL_TWO_SIDE are accepted.
param Specifies the value that param will be set to.
pname Specifies a lighting model parameter. GL_LIGHT_MODEL_AMBIENT,
GL_LIGHT_MODEL_LOCAL_VIEWER, and
GL_LIGHT_MODEL_TWO_SIDE are accepted.
params Specifies a pointer to the value or values that params will be set to.
Description
glLightModel sets the lighting model parameter. pname names a parameter and params
gives the new value. There are three lighting model parameters:
GL_LIGHT_MODEL_AMBIENT
params contains four integer or floating-point values that specify the ambient RGBA
intensity of the entire scene. Integer values are mapped linearly such that the most
positive representable value maps to 1.0, and the most negative representable value
maps to - 1.0. Floating-point values are mapped directly. Neither integer nor
floating-point values are clamped. The initial ambient scene intensity is (0.2, 0.2, 0.2,
1.0).
GL_LIGHT_MODEL_LOCAL_VIEWER

Table of Contents

Other manuals for HP b2600

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP b2600 and is the answer not in the manual?

HP b2600 Specifications

General IconGeneral
BrandHP
Modelb2600
CategoryDesktop
LanguageEnglish

Related product manuals