Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 17 Which of the following code segment will make the window solid and green? gl.clearColor(0.0, 1.0.0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 1.0, 1.0); Og1.clear(g1.COLOR_BUFFER_BIT); gl.clearColor(0.0,

image text in transcribed
image text in transcribed
QUESTION 17 Which of the following code segment will make the window solid and green? gl.clearColor(0.0, 1.0.0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 1.0, 1.0); Og1.clear(g1.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); gl.clearColor(0.0, 0.0, 0.0, 0.0); g1.clear(g1.COLOR_BUFFER_BIT): gl.clearColor(1.0, 0.0, 0.0, 1.0); g1.clear(gi.COLOR_BUFFER_BIT); QUESTION 18 A viewport is a rectangular area of the display window. By default, it is the entire window, but it can be set to any smaller size in pixels via the function gl.viewport. In following function call, what is the coordinate of the right upper corner of the view port? gl.viewport(1, 2, 3, 4); (42) (46) (1.6) (1.2) QUESTION 19 Consider a minimum GLSL. fragment shader: precision mediump float: void mainot Bl_FragColor - vec4(1.0.0.0, 0.0, 1.0): This shader will make the displayed point to be Green and opaque. True False UFSTION 20

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logics For Databases And Information Systems

Authors: Jan Chomicki ,Gunter Saake

1st Edition

1461375827, 978-1461375821

More Books

Students also viewed these Databases questions