Rendering
in modern OpenGL is usually done using:
glDrawArrays
(GLenum mode, GLint
first, GLsizei
count);The
vertices comprising the primitive are stored in buffer on the GPU.
GLenum mode is
the primitive type, one of
- GL_POINTS
- GL_LINES
- GL_LINE_STRIP
- GL_LINE_LOOP
- GL_TRIANGLES
- GL_TRIANGLE_STRIP
- GL_TRIANGLE_FAN
GLint first is
the index to the first element to be rendered
GLsizei
count is
the number of elements to be rendered