Instead of calling a GL procedure to pass each individual vertex, normal, texture coordinate, edge flage, or color, you can prespecify separate arrays of vertexes, normals, and colors and use them to construct a sequence of primitives with a single call to glDrawArrays . When glDrawArrays is called, it uses count sequential elements from each enabled array to construct a sequence of geometric primitives, beginning with element first. The mode parameter specifies what kind of primitives are constructed, and how the array elements construct these primitives. Vertex attributes that are modified by glDrawArrays have an unspecified value after glDrawArrays returns. Attributes that are not modified remain well defined.
Parameters mode Specifies what kind of primitives to render.
The glDrawArrays subroutine is available only if the GL version is 1.1 or greater. The glDrawArrays subroutine is included in display lists. 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.