GLBINDATTRIBLOCAITON(3gl)GLBINDATTRIBLOCAITON(3gl)NAME
glBindAttribLocationARB - set the current secondary color
C SPECIFICATION
void glBindAttribLocationARB( GLhandleARB program,
GLbyte index,
const GLcharARB *name )
PARAMETERS
program Specifies the handle of program object which vertex attributes
are
asso‐
ci‐
ated
with.
index Specifies the index of the vertex attribute.
name Specifies the null terminated string containing the name of the
ver‐
tex
attribute.
DESCRIPTION
glBindAttribLocationARB associates an attribute variable in the program
object with a vertex attribute index.
NOTES
glBindAttribLocationARB can be called before any vertex shader objects
are bound.
ERRORS
GL_INVALID_VALUE is generated if index is greater than or equal to
GL_MAX_VERTEX_ATTRIBS_ARB
GL_INVALID_OPERATION is generated if name starts with "gl".
GL_INVALID_VALUE is generated if program is not a valid handle.
GL_INVALID_OPERATION is generated if program is not a of type
GL_INVALID_OPERATION is generated glBindAttribLocationARB is executed
between glBegin and glEnd.
ASSOCIATED GETS
glGet with argument GL_MAX_VERTEX_ATTRIBS_ARB
glGetActiveAttribARB with argument program
glGetAttribLocationARB with arguments program and name
SEE ALSO
glDiableVertexAttribArrayARB, glEnableVertexAttribArrayARB, glUsePro‐
gramObjectARB, glVertexAttribARB, glVertexAttribPointerARB
11 Mar 04 GLBINDATTRIBLOCAITON(3gl)