glGetUniformBlockIndex

retrieve the index of a named uniform block

Signature

glGetUniformBlockIndex( GLuint ( program ) , const GLchar *( uniformBlockName ) )-> GLuint
glGetUniformBlockIndex( program , uniformBlockName ) -> <class 'ctypes.c_uint'>

Parameters

VariablesDescription
program
Specifies the name of a program containing the uniform block.
uniformBlockName
Specifies the address an array of characters to containing the name of the uniform block whose index to retrieve.