D
glDrawElements
glDrawElements is included in display lists. If glDrawElements is entered into a display
list, the necessary array data (determined by the array pointers and enables) is also
entered into the display list. Because the array pointers and enables are client-side
state, their values affect display lists when the lists are created, not when the lists are
executed.
Errors
•
•
•
See Also
glArrayElement,
glColorPointer,
glDrawArrays,
glEdgeFlagPointer,
glGetPointer,
glIndexPointer,
glInterleavedArrays,
glNormalPointer,
glTexCoordPointer,
glVertexPointer
120
GL_INVALID_ENUM is generated if mode is not an accepted value.
GL_INVALID_VALUE is generated if count is negative.
GL_INVALID_OPERATION is generated ifglDrawElements is executed between the
execution of glBegin and the corresponding glEnd.
Chapter 4