glBindAttribLocation

Associates a generic vertex attribute index with a named attribute variable

Signature

glBindAttribLocation( GLuint ( program ) , GLuint ( index ) , const GLchar *( name ) )-> void
glBindAttribLocation( program , index , name )

Parameters

VariablesDescription
program
Specifies the handle of the program object in which the association is to be made.
index
Specifies the index of the generic vertex attribute to be bound.
name
Specifies a null terminated string containing the name of the vertex shader attribute variable to which index is to be bound.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glBindAttribLocation
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 119
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 127
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 105
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 105