DA4 - CS0045 || CANVAS

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

30 Terms

1
New cards

Which property defines spotlight cutoff?

Group of answer choices

GL_SPOT_DIRECTION

GL_POSITION

GL_AMBIENT

GL_SPOT_CUTOFF

GL_SPOT_CUTOFF*

2
New cards

Which variable stores rotation in the triangle animation sample?

Group of answer choices

angle

value

initTriangle

VBOid

angle*

3
New cards

glRotatef(angle,0,0,1) rotates the triangle around which axis?

Group of answer choices

y

w

x

z

z*

4
New cards

OpenGL lighting includes material, light, and ____ lighting properties.

Group of answer choices

window

global

texture

buffer

global*

5
New cards

Which function resets the current matrix to identity?

Group of answer choices

glPopMatrix()

glLoadIdentity()

glViewport()

glPushMatrix()

glLoadIdentity()*

6
New cards

Which query retrieves the maximum supported light count?

Group of answer choices

glEnable(GL_MAX_LIGHTS)

glGetIntegerv(GL_MAX_LIGHTS,&n)

glLightfv(GL_MAX_LIGHTS)

glGetString(GL_LIGHTS)

glGetIntegerv(GL_MAX_LIGHTS,&n)*

7
New cards

Which function rotates an object around a specified axis?

Group of answer choices

glViewport()

glScale()

glTranslate()

glRotate()

glRotate()*

8
New cards

Which function moves an object along x, y, and z?

Group of answer choices

glScale()

glTranslate()

glFrustum()

glRotate()

glTranslate()*

9
New cards

Which function manually defines a perspective frustum?

Group of answer choices

glViewport()

glOrtho()

gluLookAt()

glFrustum()

glFrustum()*

10
New cards

Which function creates perspective projection from fovy and aspect?

Group of answer choices

gluPerspective()

glViewport()

glOrtho()

gluOrtho2D()

gluPerspective()*

11
New cards

A shininess value near 0 represents a very ____ surface.

Group of answer choices

transparent

shiny

rough

emissive

rough*

12
New cards

Which function restores the last saved matrix?

Group of answer choices

glPushMatrix()

glRotatef()

glPopMatrix()

glLoadIdentity()

glPopMatrix()*

13
New cards

Which material property is the object's base color?

Group of answer choices

GL_AMBIENT

GL_DIFFUSE

GL_SHININESS

GL_SPECULAR

GL_DIFFUSE*

14
New cards

OpenGL supports local point and ____ light sources.

Group of answer choices

bitmap

material

orthographic

infinite directional

infinite directional*

15
New cards

Which function is the simplified 2D orthographic projection?

Group of answer choices

gluPerspective()

gluOrtho2D()

glFrustum()

gluLookAt()

gluOrtho2D()*

16
New cards

glTranslatef(0,-0.5,0) moves the triangle along which axis?

Group of answer choices

x

y

w

z

y*

17
New cards

Which material property represents glow?

Group of answer choices

GL_AMBIENT

GL_EMISSION

GL_SPECULAR

GL_DIFFUSE

GL_EMISSION*

18
New cards

Which call enables one specific light?

Group of answer choices

glEnable(GL_LIGHTING_ONLY)

glMaterialfv(GL_LIGHTn)

glLightfv(GL_ENABLE)

glEnable(GL_LIGHTn)

glEnable(GL_LIGHTn)

19
New cards

Which matrix mode handles modeling and viewing transformations?

Group of answer choices

GL_PROJECTION

GL_MODELVIEW

GL_TEXTURE_2D

GL_DEPTH

GL_MODELVIEW*

20
New cards

Which function selects the current matrix stack?

Group of answer choices

glViewport()

glMatrixMode()

glLoadIdentity()

glPushMatrix()

glMatrixMode()*

21
New cards

Which constant names the first OpenGL light?

Group of answer choices

GL_LIGHTING

GL_LIGHT1

GL_AMBIENT

GL_LIGHT0

GL_LIGHT0*

22
New cards

Which coordinate controls whether a light is local or directional?

Group of answer choices

y

z

w

x

w*

23
New cards

Which material property is the low-light color?

Group of answer choices

GL_SHININESS

GL_SPECULAR

GL_AMBIENT

GL_DIFFUSE

GL_AMBIENT*

24
New cards

Lighting simulates how objects ____ light.

Group of answer choices

index

reflect

store

compile

reflect*

25
New cards

Which function defines the drawable window region?

Group of answer choices

glViewport()

glScale()

glMatrixMode()

glOrtho()

glViewport()*

26
New cards

Which function is the simplified 2D orthographic projection?

Group of answer choices

gluLookAt()

gluPerspective()

glFrustum()

gluOrtho2D()

gluOrtho2D()*

27
New cards

A realistic 3D scene needs distant objects to appear smaller. Choose the projection.

Group of answer choices

Color-index

Orthographic

Perspective

Bitmap

Perspective*

28
New cards

Which call globally turns lighting calculations on?

Group of answer choices

glLightfv(GL_LIGHTING)

glEnable(GL_DEPTH_TEST)

glEnable(GL_LIGHTING)

glEnable(GL_LIGHT0)

glEnable(GL_LIGHTING)*

29
New cards

Which source datatype is used for the loaded image bytes?

Group of answer choices

GL_FLOAT

GL_UNSIGNED_BYTE

GL_INT

GL_DOUBLE

GL_UNSIGNED_BYTE*

30
New cards

Which sequence correctly creates a texture from an image?

Group of answer choices

glGenerateMipmap -> glGenTextures -> glBindBuffer -> glMaterialfv

glGenTextures -> glBindTexture -> stbi_load -> glTexImage2D -> glGenerateMipmap

stbi_image_free -> glGenTextures -> glDrawArrays -> glTexImage2D

glTexCoordPointer -> glDeleteBuffers -> stbi_load -> glViewport

glGenTextures -> glBindTexture -> stbi_load -> glTexImage2D -> glGenerateMipmap*