In the lecture slides, we saw the following code to draw a buffer in modern OpenGL:glDrawElements(PrimType[object], NumElems[object], GL_UNSIGNED_BYTE, BUFFER_OFFSET(0)) ;The third argument to glDrawElements denotes the type of the vertex indices.Given our code as is, how many unique vertices can be referenced by each face?______
查看答案
Why must we explicitly write code to compile the shader at run-time?.
A. GLSL is an interpreted language.
B. No real reason; we could compile it along with our CPU program.
Convenience for the application programmer, to more quickly modify shader programs.
D. The shader code is compiled to run on a GPU, which may not necessarily have the same instruction set architecture as our host machine.
Which functions are not given by GLUT?
A. Object management (Triangle meshes, etc).
B. Keyboard/mouse interaction.
C. Window initialization.
D. Window operations (resize, close).
What function does a projection transformation matrix achieve?
A. Positions camera in world.
B. Transforms objects as if camera were at the origin.
C. Transforms the world into a viewing cube.
D. Positions objects in the world.
What function does a model view transformation matrix achieve?
A. Positions camera in world.
B. Transforms objects as if camera were at the origin.
C. Transforms the world into a viewing cube.
D. Positions objects in the world.