glGetActiveUniform

Returns information about an active uniform variable for the specified program object

Signature

glGetActiveUniform( GLuint ( program ) , GLuint ( index ) , GLsizei ( bufSize ) , GLsizei *( length ) , GLint *( size ) , GLenum *( type ) , GLchar *( name ) )-> void
glGetActiveUniform( program , index , bufSize , length , size , type , name )
Retrieve the name, size and type of the uniform of the index in the program
glGetActiveUniformsiv( program , uniformCount , uniformIndices , pname , params )

Parameters

VariablesDescription
program
Specifies the program object to be queried.
index
Specifies the index of the uniform variable to be queried.
bufSize
Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name .
length
Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed.
size
Returns the size of the uniform variable.
type
Returns the data type of the uniform variable.
name
Returns a null terminated string containing the name of the uniform variable.