Seven common basic primitives
type | describe |
---|---|
GL_POINTS | Each vertex is a separate point on the screen |
GL_LINES | Each pair of vertices defines a line segment |
GL_LINE_STRIP | A line drawn from the first vertex through each successive vertex |
GL_LINE_LOOP | Same as GL_LINE_STRIP, but the last vertex is joined to the first. |
GL_TRIANGLES | A new triangle is defined for every three vertices |
GL_TRIANGLE_STRIP | A group of triangles that share vertices on a strip |
GL_TRIANGLE_FAN | A group of triangles fan-shaped around a dot and sharing adjacent vertices |
The connection diagram of basic primitives is as follows: