psychopy.tools.gltools.getAttribLocations

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

Get attribute names and locations from the specified program object.

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

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

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

Returns:

Attribute names and locations.

Return type:

dict


Back to top