# glGetLight

return light source parameter values

## Signature

glGetLight( )->
glGetLightfv( GLenum ( light ) , GLenum ( pname ) , GLfloat * ( params ) )-> void
glGetLightfv( )
glGetLightiv( GLenum ( light ) , GLenum ( pname ) , GLint * ( params ) )-> void
glGetLightiv( )

## Parameters

VariablesDescription
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 $\mathit{i}$ where $\mathit{i}$ 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
OpenGLContext tests/glgetlight.py Lines: 14