glGetUniform

Returns the value of a uniform variable

Signature

glGetUniformdv( GLuint ( program ) , GLint ( location ) , GLdouble *( params ) )-> void
glGetUniformdv( program , location , params )
glGetUniformfv( GLuint ( program ) , GLint ( location ) , GLfloat *( params ) )-> void
glGetUniformfv( program , location , params )
glGetUniformiv( GLuint ( program ) , GLint ( location ) , GLint *( params ) )-> void
glGetUniformiv( program , location , params )
glGetUniformuiv( GLuint ( program ) , GLint ( location ) , GLuint *( params ) )-> void
glGetUniformuiv( program , location , params )

Parameters

VariablesDescription
program
Specifies the program object to be queried.
location
Specifies the location of the uniform variable to be queried.
params
Returns the value of the specified uniform variable.

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.

glGetUniformfv
OpenGLContext tests/shader_7.py Lines: 305