glGetVertexAttribPointer
Name
glGetVertexAttributePointerv Returns the address of the specified pointer
C Specification
void glGetVertexAttribPointerv(GLuint index,
GLenum pname,
GLvoid **pointer)
Parameters
index | Specifies the generic vertex attribute to be queried. | pname | Specifies the symbolic name of the generic vertex attribute parameter to be queried. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. | params | Returns the requested data. |
Description
glGetVertexAttribPointer returns pointer information. index is the generic vertex attribute to be queried, pname is a symbolic constant indicating the pointer to be returned, and params is a pointer to a location in which to place the returned data. The accepted parameter names are as follows:
GL_VERTEX_ATTRIB_ARRAY_POINTER
params returns a single value that is a pointer to the vertex attribute array for the generic vertex attribute specified by index.
Notes
glGetVertexAttribPointer is available only if the GL version is 2.0 or greater.
The pointer returned is client-side state.
The initial value for each pointer is NULL.
Errors
GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX_ATTRIBS.
GL_INVALID_ENUM is generated if pname is not an accepted value.
Associated Gets
glGet with argument GL_MAX_VERTEX_ATTRIBS
glGetVertexAttrib with arguments index and the name of a generic vertex attribute parameter
See Also
glVertexAttribPointer
|