glGetLightiv

glGetLight: man2/glGetLight.xml

glGetLight returns in params the value or values of a light source parameter. light names the light and is a symbolic name of the form GL_LIGHT i where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. GL_MAX_LIGHTS is an implementation dependent constant that is greater than or equal to eight. pname specifies one of ten light source parameters, again by symbolic name. The following parameters are defined:

It is always the case that GL_LIGHT i = GL_LIGHT0 + i. If an error is generated, no change is made to the contents of params.

@OpenGL_Version(OGLIntroducedIn.V1P0)
fn_glGetLightiv glGetLightiv;

See Also

glLight

Meta