Geometric Primitives Flashcards
Use this primitive type to render mathematical points. OpenGL renders a point for each vertex specified.
GL_POINTS
Use this primitive to draw unconnected line segments.
GL_LINES
draws a line segment for each group of
two vertices
Use this primitive to draw a sequence of connected line segment
GL_LINE_STRIP
Use this primitive to close a line strip
GL_LINE_LOOP
renders this primitive like a GL_LINE_STRIP with the addition of a closing line segment between the final and first vertices
GL_LINE_LOOP
Parameter pattern is used to reference a
16-bit integer
OpenGL renders this primitive like a GL_LINE_STRIP with the addition of a closing line segment between the final and first vertices.
GL_LINE_LOOP
Sets the fixed width of lines
gLineWidth()
specifies how many times each bit in the pattern is to be repeated before the next bit in the pattern is applied.
repeatFactor
Before a line can be displayed in the current line-style pattern, we mustactivate the line-style feature of OpenGL
True
Use this primitive to draw individual triangles. OpenGL renders a triangle for each group of three vertices.
GL_TRIANGLES
to draw a single filled convex n-gon primitive.
GL_POLYGON
If n is less than 3, OpenGL renders nothing.
GL_POLYGON
Use this primitive to draw a sequence of triangles that share edges. OpenGL renders a triangle using the first, second, and third vertices, and then another using the second, third, and fourth vertices, and so on.
GL_TRIANGLE_STRIP