GLGETVERTEXATTRIB(3gl)GLGETVERTEXATTRIB(3gl)NAME
glGetVertexAttribfvARB, glGetVertexAttribivARB, glGetVertexAttribdvARB
- Returns a generic vertex attribute parameter.
C SPECIFICATION
void glGetVertexAttribfvARB( GLuint index,
GLenum pname,
GLfloat *params)
void glGetVertexAttribivARB( GLuint index,
GLenum pname,
GLint *params)
void glGetVertexAttribdvARB( GLuint index,
GLenum pname,
GLint *params)
PARAMETERS
index Specifies the vertex attribute to be queried.
pname Specifies the symbolic name of the vertex attribute to be queried.
GL_VER‐
TEX_ATTRIB_ARRAY_ENABLED_ARB,
GL_VER‐
TEX_ATTRIB_ARRAY_SIZE_ARB,
GL_VER‐
TEX_ATTRIB_ARRAY_STRIDE_ARB,
GL_VER‐
TEX_ATTRIB_ARRAY_TYPE_ARB,
GL_VER‐
TEX_ATTRIB_ARRAY_NOR‐
MAL‐
IZED_ARB,
GL_CUR‐
RENT_VER‐
TEX_ATTRIB_ARB
params Returns the requested data.
DESCRIPTION
glGetVertexAttribARB returns the values of a vertex attribute parame‐
ter. The accepted parameter names are as follows:
GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB Returns non-zero value if vertex
attribute array specified by index
is enabled otherwise returns 0.
GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB Returns the number of values (1,2,3,
or 4) of each element of the vertex
attribute array specified by index.
GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB, Returns the number of bytes between
each element of the vertex attribute
array specified by index. A value of
0 is returned if the elements are
contiguous.
GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB Returns the array type for the ver‐
tex attribute array specified by
index. Possible values are:
GL_BYTE, BL_UNSIGEND_BYTE, GL_SHORT,
GL_UNSIGNED_SHORT, GL_INT,
GL_UNSIGNED_INT, GL_FLOAT, and
GL_DOUBLE.
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB,
Returns the non-zero if fixed point
data types for the vertex attribute
array specified by index are normal‐
ized when they are converted to
floating point.
GL_CURRENT_VERTEX_ATTRIB_ARB, Returns a 4 element vector contain‐
ing the values for the current ver‐
tex attribute specified by index.
ERRORS
GL_INVALID_VALUE is generated if index is greater than or equal to
GL_MAX_VERTEX_ATTRIBS_ARB.
GL_INVALID_ENUM is generated if pname is not an accepted value.
GL_INVALID_OPERATION is generated if index is 0 and pname is GL_CUR‐
RENT_VERTEX_ATTRIB_ARB.
SEE ALSO
glBindAttribLocationARB, glDisableVertexAttribArrayARB, glEnableVertex‐
AttribArrayARB, glVertexAttribARB, glVertexAttribPointerARB
11 Mar 04 GLGETVERTEXATTRIB(3gl)