Signature
Parameters
Variables | Description |
---|---|
light |
Specifies a light source.
The number of possible lights depends on the implementation,
but at least eight lights are supported.
They are identified by symbolic names of the form
GL_LIGHT
where
ranges from 0 to the value of
GL_MAX_LIGHTS
- 1.
|
pname |
Specifies a light source parameter for
light
.
Accepted symbolic names are
GL_AMBIENT
,
GL_DIFFUSE
,
GL_SPECULAR
,
GL_POSITION
,
GL_SPOT_DIRECTION
,
GL_SPOT_EXPONENT
,
GL_SPOT_CUTOFF
,
GL_CONSTANT_ATTENUATION
,
GL_LINEAR_ATTENUATION
, and
GL_QUADRATIC_ATTENUATION
.
|
params |
Returns the requested data.
|
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.
glGetLightfv