Signature
Parameters
Variables | Description |
---|---|
location |
Specifies the location of the uniform variable
to be modified.
|
count |
For the vector (
glUniform*v
) commands,
specifies the number of elements that are to be modified.
This should be 1 if the targeted uniform variable is not an
array, and 1 or more if it is an array.
|
transpose |
For the matrix commands, specifies whether to transpose the
matrix as the values are loaded into the uniform variable.
|
v0, v1, v2, v3 |
For the scalar commands, specifies the new values to be used
for the specified uniform variable.
|
value |
For the vector and matrix commands, specifies a pointer to
an array of
count
values that will be
used to update 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.
glUniform1f
glUniform1i
glUniform2f
glUniform2i
glUniform3f
glUniform3fv
glUniform3i
glUniform4f
glUniform4fv
glUniform4i
glUniformMatrix3fv
glUniformMatrix4fv