glGetProgram

Returns a parameter from a program object

Signature

glGetProgramiv( GLuint ( program ) , GLenum ( pname ) , GLint *( params ) )-> void
glGetProgramiv( program , pname , params )

Parameters

VariablesDescription
program
Specifies the program object to be queried.
pname
Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS , GL_LINK_STATUS , GL_VALIDATE_STATUS , GL_INFO_LOG_LENGTH , GL_ATTACHED_SHADERS , GL_ACTIVE_ATOMIC_COUNTER_BUFFERS , GL_ACTIVE_ATTRIBUTES , GL_ACTIVE_ATTRIBUTE_MAX_LENGTH , GL_ACTIVE_UNIFORMS , GL_ACTIVE_UNIFORM_BLOCKS , GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH , GL_ACTIVE_UNIFORM_MAX_LENGTH , GL_COMPUTE_WORK_GROUP_SIZE GL_PROGRAM_BINARY_LENGTH , GL_TRANSFORM_FEEDBACK_BUFFER_MODE , GL_TRANSFORM_FEEDBACK_VARYINGS , GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH , GL_GEOMETRY_VERTICES_OUT , GL_GEOMETRY_INPUT_TYPE , and GL_GEOMETRY_OUTPUT_TYPE .
params
Returns the requested object parameter.

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.

glGetProgramiv
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 480, 488
Visvis core/shaders.py Lines: 541
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 99
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 122
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 130
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 108
{GPL3} OpenGL-Programmable 05-shader.py Lines: 91
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 108