Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pPlease disregard the hello.c comparism aspect of the question. My professor did not provide it a1.pdf 2 of 2 A' Read aloud Draw Highlight v

pPlease disregard the hello.c comparism aspect of the question. My professor did not provide it

image text in transcribed

a1.pdf 2 of 2 A' Read aloud Draw Highlight v Erase (3) (8 marks) In program hello.c posted on the course website, find the similar lines of code as follows and try to understand them. Now use the following lines of code to answer some questions. glutinitWindowSize (600, 400); glOrtho(0.0, 2.0, 0.0, 2.0,-1.0, 1.0); glVertex3f (0.25, 0.25, 0.0); // V1 glVertex3f (0.75, 0.25, 0.0); // 12 (a) (2 marks) What does function glOrtho do? (b) (3 marks) Calculate the distance between the two points V, and V2, in the unit of pixels, on the monitor. (c) (3 marks) There is some abnormal situation that happens in terms of the parameters used in setting up the window, viewport, etc. Explain what the situation is and explain why it happens. Assignment 1 Part (B) (To be announced shortly) (10 marks) Due: February 5 (Friday), 11:55pm on Moodle Type here to search lara ENG 9:28 AM 2021-01-26 a1.pdf 2 of 2 A' Read aloud Draw Highlight v Erase (3) (8 marks) In program hello.c posted on the course website, find the similar lines of code as follows and try to understand them. Now use the following lines of code to answer some questions. glutinitWindowSize (600, 400); glOrtho(0.0, 2.0, 0.0, 2.0,-1.0, 1.0); glVertex3f (0.25, 0.25, 0.0); // V1 glVertex3f (0.75, 0.25, 0.0); // 12 (a) (2 marks) What does function glOrtho do? (b) (3 marks) Calculate the distance between the two points V, and V2, in the unit of pixels, on the monitor. (c) (3 marks) There is some abnormal situation that happens in terms of the parameters used in setting up the window, viewport, etc. Explain what the situation is and explain why it happens. Assignment 1 Part (B) (To be announced shortly) (10 marks) Due: February 5 (Friday), 11:55pm on Moodle Type here to search lara ENG 9:28 AM 2021-01-26

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

Students also viewed these Databases questions