glGetUniformIndices

retrieve the index of a named uniform block

Signature

glGetUniformIndices( GLuint ( program ) , GLsizei ( uniformCount ) , const GLchar **( uniformNames ) , GLuint *( uniformIndices ) )-> void
glGetUniformIndices( program , uniformCount , uniformNames , uniformIndices )

Parameters

VariablesDescription
program
Specifies the name of a program containing uniforms whose indices to query.
uniformCount
Specifies the number of uniforms whose indices to query.
uniformNames
Specifies the address of an array of pointers to buffers containing the names of the queried uniforms.
uniformIndices
Specifies the address of an array that will receive the indices of the uniforms.