Module 6 Flashcards
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
G_VERTEX_ARRAY
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
The byte offset between consecutive vertices
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 pointer to the first element of the vertex array
___________ 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
Vertex Arrays
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
The data type of each coordinate in the array
The first parameter in glVertexPointer() specifies the number of total vertex to be rendered on the screen
Group of answer choices
True
False
False
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
Specifies a pointer to the location where the indices are stored
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
Specifies the number of elements to be rendered
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
Specifies the number of indices to be rendered.
In OpenGL high-performance memory refers to your GPUs memory.
Group of answer choices
True
False
True
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
Specifies the number of components per color
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
3
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
GL_COLOR_ARRAY
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
Specifies a pointer to the first component of the first color element in the array.
glVertexPointer parameters
size
type
stride
pointer