Graphics Reference
In-Depth Information
void
glDrawArrays
(GLenum
mode,
GLint
first,
GLsizei
count
)
mode
specifies the primitive to render; valid values are
GL_POINTS
GL_LINES
GL_LINE_STRIP
GL_LINE_LOOP
GL_TRIANGLES
GL_TRIANGLE_STRIP
GL_TRIANGLE_FAN
first
specifies the starting vertex index in the enabled vertex arrays
count
specifies the number of vertices to be drawn
void
glDrawElements
(GLenum
mode,
GLsizei
count,
GLenum
type,
const GLvoid
*indices
)
void
glDrawRangeElements
(GLenum
mode,
GLuint
start,
GLuint
end,
GLsizei
count,
GLenum
type,
const GLvoid
*indices
)
mode
specifies the primitive to render; valid values are
GL_POINTS
GL_LINES
GL_LINE_STRIP
GL_LINE_LOOP
GL_TRIANGLES
GL_TRIANGLE_STRIP
GL_TRIANGLE_FAN
start
specifies the minimum array index in
indices
(
glDrawRangeElements
only)
end
specifies the maximum array index in
indices
(
glDrawRangeElements
only)
count
specifies the number of indices to be drawn
type
specifies the type of element indices stored in
indices
;
valid values are
GL_UNSIGNED_BYTE
GL_UNSIGNED_SHORT
GL_UNSIGNED_INT
indices
specifies a pointer to location where element indices are stored