Signature
Parameters
Variables | Description |
---|---|
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_LIGHT
,
where i ranges from 0 to the value of
GL_MAX_LIGHTS
- 1.
|
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 |
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glLight
glLightf
glLightfv