[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Sets the shading model, either GL_SMOOTH
or GL_FLAT
.
Creates a light specified by light, which is
one of GL_LIGHT0
, …, GL_LIGHT7
,
and sets a characteristics named by pname with the value param.
Possible values as pname and acceptable types of param are as follows.
GL_AMBIENT
, GL_DIFFUSE
, GL_SPECULAR
, GL_POSITION
Accepts an f32 or s32vector of size 4.
GL_SPOT_DIRECTION
Accepts an f32 or s32vector of size 3.
GL_SPOT_EXPONENT
, GL_SPOT_CUTOFF
, GL_CONSTNAT_ATTENUATION
, GL_LINEAR_ATTENUATION
, GL_QUADRATIC_ATTENUATION
Accepts a real number (glLightf
is used).
Returns the value of the property pname of the light light. Returned value can be f32vector or a real number.
Sets the value of the property pname of the lighting model. Possible pname and its allowed param is as follows.
GL_LIGHT_MODEL_AMBIENT
Accepts f32 or s32vector of size 4.
GL_LIGHT_MODEL_LOCAL_VIEWER
, GL_LIGHT_MODEL_TWO_SIDE
Accepts any Scheme value, which is interpreted as a boolean value.
(That is, you have to pass #f
to turn off these properties,
and any other value to turn on.
GL_LIGHT_MODEL_COLOR_CONTROL
Accepts an enum value either GL_SINGLE_COLOR
or
GL_SEPARATE_SPECULAR_COLOR
.
Sets the current material property. Face may be either
GL_FRONT
, GL_BACK
, or GL_FRONT_AND_BACK
.
Possible values of pname and acceptable param types are
as follows.
GL_AMBIENT
, GL_DIFFUSE
, GL_AMBIENT_AND_DIFFUSE
, GL_SPECULAR
, GL_EMISSION
Accepts f32 or s32vector of size 4.
GL_SHININESS
Accepts a single real number (glMatrialf
is called).
GL_COLOR_INDEXES
Accepts f32 or s32vector of size 3.
Returns the current material property of face and pname.
The type of returned value may be f32vector, s32vector (only for
GL_COLOR_INDEXES
), or a real number.
Makes the material property mode (e.g. GL_AMBIENT
etc.)
of the face face follow the current color set by gl-color
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Shiro Kawai on June, 7 2008 using texi2html 1.78.