glUseProgram

Installs a program object as part of current rendering state

Signature

glUseProgram( GLuint ( program ) )-> void
glUseProgram( program )

Parameters

VariablesDescription
program
Specifies the handle of the program object whose executables are to be used as part of current rendering state.

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.

glUseProgram
OpenGLContext tests/shader_8.py Lines: 212, 254
OpenGLContext tests/shader_10.py Lines: 291, 331
OpenGLContext tests/shader_9.py Lines: 344, 386
OpenGLContext tests/shader_3.py Lines: 138, 177
OpenGLContext tests/shader_2.py Lines: 129, 190
OpenGLContext tests/shader_spike.py Lines: 13, 76, 91
OpenGLContext tests/shader_2_c_void_p.py Lines: 55, 68
OpenGLContext tests/shader_6.py Lines: 236, 320
OpenGLContext tests/shader_11.py Lines: 259, 317
OpenGLContext tests/shader_5.py Lines: 287, 321
OpenGLContext tests/shaders.py Lines: 26
OpenGLContext tests/shader_1.py Lines: 234, 278
OpenGLContext tests/shader_7.py Lines: 278, 336
OpenGLContext tests/pygame_textureatlas.py Lines: 125, 151
OpenGLContext tests/shader_4.py Lines: 117, 173
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 426, 472, 512
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 38, 88
OpenGL-Demo py2exe-example/shader_test.py Lines: 39, 89
{LGPL} PyMT pymt/graphx/shader.py Lines: 11, 79, 83
Gloopy gloopy/view/shader.py Lines: 34, 40
OpenGL Tutorial (Python Translation) t02.playing-with-colors/FragPosition.py Lines: 85, 93
OpenGL Tutorial (Python Translation) t02.playing-with-colors/VertexColors.py Lines: 88, 99
OpenGL Tutorial (Python Translation) t01.hello-triangle/HelloTriangle.py Lines: 99, 107
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 105
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 128
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 136
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 114
{GPL3} OpenGL-Programmable 05-shader.py Lines: 97
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 114