glLightModel

set the lighting model parameters

Signature

glLightModel( )->
glLightModelf( GLenum ( pname ) , GLfloat ( param ) )-> void
glLightModelf( pname , param )
glLightModelfv( GLenum ( pname ) , const GLfloat * ( params ) )-> void
glLightModelfv( pname , params )
glLightModeli( GLenum ( pname ) , GLint ( param ) )-> void
glLightModeli( pname , param )
glLightModeliv( GLenum ( pname ) , const GLint * ( params ) )-> void
glLightModeliv( pname , params )

Parameters

VariablesDescription
pname
Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER , GL_LIGHT_MODEL_COLOR_CONTROL , and GL_LIGHT_MODEL_TWO_SIDE are accepted.
param
Specifies the value that param 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.

glLightModelf
OpenGL-Demo PyOpenGL-Demo/tom/fog.py Lines: 45
Visvis core/baseFigure.py Lines: 830, 831, 833
glLightModelfv
OpenGLContext OpenGLContext/browser/passes.py Lines: 24
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 38
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 43
OpenGL-Demo PyOpenGL-Demo/tom/conechecker.py Lines: 42
OpenGL-Demo PyOpenGL-Demo/tom/conesave.py Lines: 25
OpenGL-Demo PyOpenGL-Demo/tom/cone.py Lines: 21
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 77, 78
{Artistic License} PymmLib applications/glutviewer.py Lines: 205
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 177
{LGPL} PyMT pymt/obj.py Lines: 22, 279, 280
Visvis core/baseFigure.py Lines: 829
glLightModeli
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 171
{Artistic License} PymmLib applications/glutviewer.py Lines: 75
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 337, 349