1/30
Looks like no tags are added yet.
Which function specifies how VBO vertex data should be implemented?
Group of answer choices
glDeleteBuffer()
glBufferData()
glVertexPointer()
glGenBuffers()
glVertexPointer()*
The polygon example is described as displaying a _______.
Group of answer choices
cube
hexagonal figure
line loop
triangle
triangle*
Matrix values are indexed using ________.
Group of answer choices
x only
vertex and color
row and column
column only
row and column*
The polygon example contains how many vertices?
Group of answer choices
6
3
4
18
3*
Which pointer function appears with the GL_NORMAL_ARRAY state in the indexed sample?
Group of answer choices
glNormalPointer()
glColorPointer()
glRasterPos2f()
glIndexPointer()
glNormalPointer()*
A matrix is described as a rectangular array similar to a ____.
Group of answer choices
two-dimensional array
linked list
callback
single scalar
two-dimensional array*
Translating (10,10,10,1) by +10 in X produces an X coordinate of ____.
Group of answer choices
20
10
0
100
20*
A homogeneous vector (x,y,z,0) represents a ____.
Group of answer choices
direction
translation
color
position in space
direction*
Which function uploads an array's data to graphics-card memory?
Group of answer choices
glBufferData()
glBindBuffer()
glDrawArrays()
glEnableClientState()
glBufferData()*
Which function generates buffer object IDs?
Group of answer choices
glDeleteBuffers()
glBindBuffer()
glBufferData()
glGenBuffers()
glGenBuffers()*
When value reaches 10 in modifyPolygon(), the program deletes the buffer and ____.
Group of answer choices
exits
creates a second window
changes its color
switches to GL_POINTS
exits*
Which OpenGL vertex form is related to homogeneous coordinates in the slides?
Group of answer choices
glVertex4f
glRasterPos2f
glColor4f
glVertex2f
glVertex4f*
OpenGL uses what matrix size for transformations according to Module 6?
Group of answer choices
4 x 3
2 x 2
4 x 4
3 x 3
4 x 4*
What requirement must be met to add or subtract two matrices?
Group of answer choices
They must have different dimensions
They must both be 4x4
They must contain only integers
They must have exactly the same row and column dimensions
They must have exactly the same row and column dimensions*
What access mode is used by glMapBuffer() in the modification sample?
Group of answer choices
GL_VERTEX_ARRAY
GL_STREAM_DRAW
GL_STATIC_DRAW
GL_READ_WRITE
GL_READ_WRITE*
Which usage hint is appropriate for data modified once and used many times?
Group of answer choices
GL_STATIC_DRAW
GL_DYNAMIC_DRAW
GL_READ_WRITE
GL_STREAM_DRAW
GL_STATIC_DRAW*
Which target is used for an index buffer with glDrawElements()?
Group of answer choices
GL_ELEMENT_ARRAY_BUFFER
GL_ARRAY_BUFFER
GL_VERTEX_ARRAY
GL_NORMAL_ARRAY
GL_ELEMENT_ARRAY_BUFFER*
Which library is used in the module to simplify access to extended OpenGL functions?
Group of answer choices
GLUT only
SDL
DirectX
GLEW
GLEW*
The program enters glutMainLoop() after glewInit() returns ____.
Group of answer choices
GLEW_OK
GLUT_OK
GLEW_STATIC
GL_TRUE
GLEW_OK*
VBOs improve performance mainly because vertex data can reside in ____ memory.
Group of answer choices
window
keyboard
video device
system-only
video device*
The polygon's vertex array contains how many GLfloat coordinate values?
Group of answer choices
6
24
12
18
12*
Which function maps the polygon VBO before the translation calculations modify it?
Group of answer choices
glVertexPointer()
glMapBuffer()
glBufferSubData()
glDrawArrays()
glMapBuffer()*
Which variables hold the translated coordinate results before they are written back?
Group of answer choices
tx, ty, tz
px, py, pz
rx, ry, rz
sx, sy, sz
tx, ty, tz
Which usage hint describes data modified once and used at most a few times?
Group of answer choices
GL_DYNAMIC_DRAW
GL_WRITE_ONLY
GL_STREAM_DRAW
GL_STATIC_DRAW
GL_STREAM_DRAW*
Which usage hint is appropriate for data modified repeatedly and used many times?
Group of answer choices
GL_STREAM_DRAW
GL_READ_ONLY
GL_DYNAMIC_DRAW
GL_STATIC_DRAW
GL_DYNAMIC_DRAW*
Which drawing function uses the index buffer?
Group of answer choices
glDrawElements()
glVertexPointer()
glArrayElement()
glDrawArrays()
glDrawElements()*
Why is GL_DYNAMIC_DRAW used in the updateable triangle sample?
Group of answer choices
The program draws only once
The buffer stores only indices
The data never changes
The data is expected to be modified repeatedly and used many times
The data is expected to be modified repeatedly and used many times*
In the translation matrix template, x, y, and z translation values appear in the ____ column.
Group of answer choices
third
first
fourth
second
fourth*
Which primitive is used to draw the six faces of the sample cube?
Group of answer choices
GL_LINES
GL_TRIANGLES
GL_QUADS
GL_POINTS
GL_QUADS*
Which ordering correctly prepares a VBO containing vertices plus added color data?
Group of answer choices
glBufferData -> glBufferSubData -> enable arrays -> set pointers
set pointers -> delete buffer -> glBufferData -> glBegin
glArrayElement -> glGenBuffers -> glBufferSubData -> glewInit
enable arrays -> glBufferSubData -> glBufferData -> delete buffer
glBufferData -> glBufferSubData -> enable arrays -> set pointers*