(
GLenum ( light ) , GLenum ( pname ) , GLfloat ( param ))-> void
glLightfv(
GLenum ( light ) , GLenum ( pname ) , const GLfloat * ( params ))-> void
glLightiv(
GLenum ( light ) , GLenum ( pname ) , const GLint * ( params ))-> void
Parameters Variables Description lightSpecifies 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 i , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1.
pnameSpecifies a single-valued light source parameter for
light.
GL_SPOT_EXPONENT,
GL_SPOT_CUTOFF,
GL_CONSTANT_ATTENUATION,
GL_LINEAR_ATTENUATION, and
GL_QUADRATIC_ATTENUATIONare accepted.
paramSpecifies the value that parameter
pnameof light source
lightwill be set to.
Sample Code ReferencesThe 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
{GPL3} OpenGL-Programmable 08-pbo.pyLines:
369 {GPL3} OpenGL-Programmable 04-vbo.pyLines:
269glLightf
glLightfv
Glinter Core.pyLines:
211, 213, 215, 217RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4