, builtins=False)[source]

Get attribute names and locations from the specified program object.

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

  • 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.


Attribute names and locations.

Return type


Back to top