psychopy.tools.gltools.getUniformLocations

psychopy.tools.gltools.getUniformLocations(program, builtins=False)[source]

Get uniform names and locations from a given shader program object.

This function works with both standard and ARB program object variants.

Parameters:
  • program (int) – Handle of program to retrieve uniforms. Must have originated from a createProgram(), createProgramObjectARB(), glCreateProgram or glCreateProgramObjectARB call.

  • builtins (bool, optional) – Include built-in GLSL uniforms (eg. gl_ModelViewProjectionMatrix). Default is False.

Returns:

Uniform names and locations.

Return type:

dict


Back to top