A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://pyopengl.sourceforge.net/documentation/manual-3.0/glLight.html below:

PyOpenGL 3.1.0 GL Man Pages

set light source parameters Signature glLightf

(

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 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 i , 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

Specifies the value that parameter

pname

of light source

light

will be set to.

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

{GPL3} OpenGL-Programmable 08-pbo.py

Lines:

369 {GPL3} OpenGL-Programmable 04-vbo.py

Lines:

269

glLightf

glLightfv

Glinter Core.py

Lines:

211, 213, 215, 217

RetroSearch 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