V
glVertexPointer
Execution of glVertexPointer is not allowed between the execution of glBegin and the
corresponding execution of glEnd, but an error may or may not be generated. If no error
is generated, the operation is undefined.
glVertexPointer is typically implemented on the client side.
Vertex array parameters are client-side state and are therefore not saved or restored by
glPushAttrib and glPopAttrib. Use glPushClientAttrib and glPopClientAttrib instead.
Errors
•
•
•
Associated Gets
glIsEnabled with argument GL_VERTEX_ARRAY
glGet with argument GL_VERTEX_ARRAY_SIZE
glGet with argument GL_VERTEX_ARRAY_TYPE
glGet with argument GL_VERTEX_ARRAY_STRIDE
glGetPointerv with argument GL_VERTEX_ARRAY_POINTER
See Also
glArrayElement,
glColorPointer,
glDrawArrays,
glDrawElements,
glEdgeFlagPointer,
glEnable,
glGetPointerv,
glIndexPointer,
glInterleavedArrays,
glNormalPointer,
glPopClientAttrib,
glPushClientAttrib,
glTexCoordPointer
478
GL_INVALID_VALUE is generated if size is not 2, 3, or 4.
GL_INVALID_ENUM is generated if type is not an accepted value.
GL_INVALID_VALUE is generated if stride is negative.
Chapter 20