Notes, forwards, MP3s, etc.

from the desk of Vezquex 
« Back to blog

OpenGL primitives

GL_POINTS
individual points

GL_LINES
pairs of vertices interpreted as individual line segments

GL_LINE_STRIP
series of connected line segments

GL_LINE_LOOP
same as above, with a segment added between last and first vertices

GL_TRIANGLES
triples of vertices interpreted as triangles

GL_TRIANGLE_STRIP
linked strip of triangles

GL_TRIANGLE_FAN
linked fan of triangles

GL_QUADS
quadruples of vertices interpreted as four-sided polygons

GL_QUAD_STRIP
linked strip of quadrilaterals

GL_POLYGON
boundary of a simple, convex polygon

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter