glProgramUniform

Specify the value of a uniform variable for a specified program object

Signature

glProgramUniform1f( GLuint ( program ) , GLint ( location ) , GLfloat ( v0 ) )-> void
glProgramUniform1f( program , location , v0 )
glProgramUniform1fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLfloat *( value ) )-> void
glProgramUniform1fv( program , location , count , value )
glProgramUniform1i( GLuint ( program ) , GLint ( location ) , GLint ( v0 ) )-> void
glProgramUniform1i( program , location , v0 )
glProgramUniform1iv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLint *( value ) )-> void
glProgramUniform1iv( program , location , count , value )
glProgramUniform1ui( GLuint ( program ) , GLint ( location ) , GLuint ( v0 ) )-> void
glProgramUniform1ui( program , location , v0 )
glProgramUniform1uiv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLuint *( value ) )-> void
glProgramUniform1uiv( program , location , count , value )
glProgramUniform2f( GLuint ( program ) , GLint ( location ) , GLfloat ( v0 ) , GLfloat ( v1 ) )-> void
glProgramUniform2f( program , location , v0 , v1 )
glProgramUniform2fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLfloat *( value ) )-> void
glProgramUniform2fv( program , location , count , value )
glProgramUniform2i( GLuint ( program ) , GLint ( location ) , GLint ( v0 ) , GLint ( v1 ) )-> void
glProgramUniform2i( program , location , v0 , v1 )
glProgramUniform2iv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLint *( value ) )-> void
glProgramUniform2iv( program , location , count , value )
glProgramUniform2ui( GLuint ( program ) , GLint ( location ) , GLint ( v0 ) , GLuint ( v1 ) )-> void
glProgramUniform2ui( program , location , v0 , v1 )
glProgramUniform2uiv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLuint *( value ) )-> void
glProgramUniform2uiv( program , location , count , value )
glProgramUniform3f( GLuint ( program ) , GLint ( location ) , GLfloat ( v0 ) , GLfloat ( v1 ) , GLfloat ( v2 ) )-> void
glProgramUniform3f( program , location , v0 , v1 , v2 )
glProgramUniform3fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLfloat *( value ) )-> void
glProgramUniform3fv( program , location , count , value )
glProgramUniform3i( GLuint ( program ) , GLint ( location ) , GLint ( v0 ) , GLint ( v1 ) , GLint ( v2 ) )-> void
glProgramUniform3i( program , location , v0 , v1 , v2 )
glProgramUniform3iv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLint *( value ) )-> void
glProgramUniform3iv( program , location , count , value )
glProgramUniform3ui( GLuint ( program ) , GLint ( location ) , GLint ( v0 ) , GLint ( v1 ) , GLuint ( v2 ) )-> void
glProgramUniform3ui( program , location , v0 , v1 , v2 )
glProgramUniform3uiv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLuint *( value ) )-> void
glProgramUniform3uiv( program , location , count , value )
glProgramUniform4f( GLuint ( program ) , GLint ( location ) , GLfloat ( v0 ) , GLfloat ( v1 ) , GLfloat ( v2 ) , GLfloat ( v3 ) )-> void
glProgramUniform4f( program , location , v0 , v1 , v2 , v3 )
glProgramUniform4fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLfloat *( value ) )-> void
glProgramUniform4fv( program , location , count , value )
glProgramUniform4i( GLuint ( program ) , GLint ( location ) , GLint ( v0 ) , GLint ( v1 ) , GLint ( v2 ) , GLint ( v3 ) )-> void
glProgramUniform4i( program , location , v0 , v1 , v2 , v3 )
glProgramUniform4iv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLint *( value ) )-> void
glProgramUniform4iv( program , location , count , value )
glProgramUniform4ui( GLuint ( program ) , GLint ( location ) , GLint ( v0 ) , GLint ( v1 ) , GLint ( v2 ) , GLuint ( v3 ) )-> void
glProgramUniform4ui( program , location , v0 , v1 , v2 , v3 )
glProgramUniform4uiv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , const GLuint *( value ) )-> void
glProgramUniform4uiv( program , location , count , value )
glProgramUniformMatrix2fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix2fv( program , location , count , transpose , value )
glProgramUniformMatrix2x3fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix2x3fv( program , location , count , transpose , value )
glProgramUniformMatrix2x4fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix2x4fv( program , location , count , transpose , value )
glProgramUniformMatrix3fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix3fv( program , location , count , transpose , value )
glProgramUniformMatrix3x2fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix3x2fv( program , location , count , transpose , value )
glProgramUniformMatrix3x4fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix3x4fv( program , location , count , transpose , value )
glProgramUniformMatrix4fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix4fv( program , location , count , transpose , value )
glProgramUniformMatrix4x2fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix4x2fv( program , location , count , transpose , value )
glProgramUniformMatrix4x3fv( GLuint ( program ) , GLint ( location ) , GLsizei ( count ) , GLboolean ( transpose ) , const GLfloat *( value ) )-> void
glProgramUniformMatrix4x3fv( program , location , count , transpose , value )

Parameters

VariablesDescription
program
Specifies the handle of the program containing the uniform variable to be modified.
location
Specifies the location of the uniform variable to be modified.
count
For the vector commands ( glProgramUniform*v ), 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.