glGetVertexAttribPointerv Function
GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv(
GLuint index,
GLenum pname,
void ** pointer
);
| Name | Description | |
|---|---|---|
| in | index | Vertex attribute index. |
| in | pname | Name of the parameter to get (GL_VERTEX_ATTRIB_ARRAY_POINTER). |
| out | pointer | Array storing the vertex attributes. |
Gets a pointer to a vertex attribute array.
Set index to a value between 0 and at least one less than the value that can be obtained by glGetIntegerv with GL_MAX_VERTEX_ATTRIBS specified.
You can specify GL_VERTEX_ATTRIB_ARRAY_POINTER for pname to get the value specified in the ptr argument to the glVertexAttribPointer function.
The following errors occur in this function.
GL_INVALID_VALUE | The index argument was set to an invalid value. |
|---|---|
GL_INVALID_ENUM | The pname argument was set to an invalid value. |
CONFIDENTIAL