glGetVertexAttribPointerv Function

Syntax

GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv(
     GLuint index,
     GLenum pname,
     void ** pointer
);

Parameters

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.

Return Values

No values are returned.

Description

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_VALUEThe index argument was set to an invalid value.
GL_INVALID_ENUMThe pname argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL