Module 6 Flashcards

1
Q

What OpenGL constant is used to activate the vertex array use in your application.

GL_VERTEX_STATE

G_VERTEX_ARRAY

GL_VERTEX_VECTOR

GL_VERTEX_PERMISSION

A

G_VERTEX_ARRAY

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

What data does the third parameter for the glVertexPointer() is for

The number of coordinates per vertex

The byte offset between consecutive vertices

The data type of each coordinate in the array

A pointer to the first element of the vertex array

A

The byte offset between consecutive vertices

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

What data does the last parameter for the glVertexPointer() is for
Group of answer choices

The data type of each coordinate in the array

The byte offset between consecutive vertices

A pointer to the first element of the vertex array

The number of coordinates per vertex

A

A pointer to the first element of the vertex array

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

___________ is used to render primitives from vertex and vertex state data stored in blocks of
Group of answer choices

Vertex Buffer Object

Vertex Storage

Vertex Arrays

Vertex Cache

A

Vertex Arrays

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

What data does the second parameter for the glVertexPointer() is for
Group of answer choices

The number of coordinates per vertex

The byte offset between consecutive vertices

The data type of each coordinate in the array

A pointer to the first element of the vertex array

A

The data type of each coordinate in the array

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

The first parameter in glVertexPointer() specifies the number of total vertex to be rendered on the screen
Group of answer choices

True

False

A

False

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

Alternatively you can use glDrawElements() to render a vertex array, the last parameter for the glDrawElements() function is the
Group of answer choices

Specifies a pointer to the location where the indices are stored

What kind of primitives to render.

The type of values in the indices

Specifies the number of elements to be rendered

A

Specifies a pointer to the location where the indices are stored

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

Alternatively you can use glDrawElements() to render a vertex array, the 2nd parameter for the glDrawElements() function is the
Group of answer choices

What kind of primitives to render.

The type of values in the indices

Specifies a pointer to the location where the indices are stored

Specifies the number of elements to be rendered

A

Specifies the number of elements to be rendered

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

In rendering the vertex arrays using glDrawArrays() function. The last parameter for the function indicates the.
Group of answer choices

Specifies the starting index in the enabled arrays

None of the mentioned

Specifies the number of indices to be rendered.

What kind of primitives to render

A

Specifies the number of indices to be rendered.

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

In OpenGL high-performance memory refers to your GPUs memory.
Group of answer choices

True

False

A

True

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

The glColorPointer has 4 parameters for the function to work. What is the purpose of the 1st parameter
Group of answer choices

Specifies the byteoffset between consecutive colors

Specifies a pointer to the first component of the first color element in the array.

Specifies the data type of each color component

Specifies the number of components per color

A

Specifies the number of components per color

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

The glColorPointer has 4 parameters for the function to work. One of its parameter is the size, for the size it is the number of components per color. What is the minimum number of components?
Group of answer choices

1

3

4

2

A

3

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

What OpenGL constant is used to activate the use of colors as arrays in your application.
Group of answer choices

GL_COLOR_VECTOR

GL_COLOR_ARRAY

GL_COLORS

GL_COLORARRAY

A

GL_COLOR_ARRAY

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

The glColorPointer has 4 parameters for the function to work. What is the purpose of the last parameter
Group of answer choices

Specifies the number of components per color

Specifies a pointer to the first component of the first color element in the array.

Specifies the data type of each color component

Specifies the byteoffset between consecutive colors

A

Specifies a pointer to the first component of the first color element in the array.

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

glVertexPointer parameters

A

size
type
stride
pointer

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

glDrawArrays parameters

A

mode
first
count

17
Q

glDrawElements parameters

A

mode
count
type
indices

18
Q
A