User:Eric B. and Rakim/vertex arrays
Appearance
In OpenGL terminology, a vertex array is a list of vertices that form a number of polygons that can be drawn at once. The relevant GL commands are:
void glDrawArrays(GLenum mode, GLint first, GLsizei count)
void glVertexPointer(GLint sizei, GLenum type, GLsizei stride, const GLvoid * pointer)
void glTexCoordPointer(GLint size, GLenum type,
GLsizei stride, const GLvoid * pointer)
void glDrawElements(GLenum 'size, GLenum type, GLsizei stride, const GLvoid * pointer)
void glEnable/glDisable(GLenum cap)
void glEnableClientState/glDisableClientState(GLenum cap)
Using these commands, the drawing efficiency can more than double compared to using slower glBegin
/glEnd
sequences.