Geometric Primitives Flashcards

1
Q

Use this primitive type to render mathematical points. OpenGL renders a point for each vertex specified.

A

GL_POINTS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Use this primitive to draw unconnected line segments.

A

GL_LINES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

draws a line segment for each group of

A

two vertices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Use this primitive to draw a sequence of connected line segment

A

GL_LINE_STRIP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Use this primitive to close a line strip

A

GL_LINE_LOOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

renders this primitive like a GL_LINE_STRIP with the addition of a closing line segment between the final and first vertices

A

GL_LINE_LOOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Parameter pattern is used to reference a

A

16-bit integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

OpenGL renders this primitive like a GL_LINE_STRIP with the addition of a closing line segment between the final and first vertices.

A

GL_LINE_LOOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Sets the fixed width of lines

A

gLineWidth()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

specifies how many times each bit in the pattern is to be repeated before the next bit in the pattern is applied.

A

repeatFactor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Before a line can be displayed in the current line-style pattern, we mustactivate the line-style feature of OpenGL

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Use this primitive to draw individual triangles. OpenGL renders a triangle for each group of three vertices.

A

GL_TRIANGLES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

to draw a single filled convex n-gon primitive.

A

GL_POLYGON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If n is less than 3, OpenGL renders nothing.

A

GL_POLYGON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.

A

GL_TRIANGLE_STRIP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Use this primitive to draw a fan of triangles that share edges and also share a vertex. Each triangle shares the first vertex specified.

A

GL_TRIANGLE_FAN

17
Q

Use this primitive to draw individual convex quadrilaterals. OpenGL renders a quadrilateral for each group of four vertices.

A

GL_QUADS

18
Q

If the application specifies n vertices, OpenGL renders n/4 quadrilaterals. If n isn’t a multiple of 4, OpenGL ignores the excess vertices.

A

GL_QUADS

19
Q

Use this primitive to draw a sequence of quadrilaterals that share edges. If the application specifies a sequence of vertices v, OpenGL renders a quadrilateral using v0, v1, v3, and v2; another quadrilateral using v2, v3, v5, and v4; and so on.

A

GL_QUAD_STRIP

20
Q

((1.0, 1.0, 1.0) is

A

white

21
Q

((0.0, 0.0, 0.0) is

A

black

22
Q

Fourth component = opacity 1.0 is

A

opaque

23
Q

Fourth component = opacity 0.0 is

A

transparent