Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C language and OpenGL, design a program to display a house in 3D with the following requirements : The house should have a red

Using C language and OpenGL, design a program to display a house in 3D with the following requirements :

The house should have a red roof and bright sides with windows and a main door. You can use your artistic imagination in designing the house using the basic OpenGL primitives.

The house set of primitives should be stored in a separate text file.

When the left button of the mouse is pressed the eye is re-positioned roughly at the X-Y location in the window without affecting its Z-ccordinate.

The right button of the mouse should be attached to a menu with these options:

1. Increment Z-ccordinate of the eye (the camera gets farther from the house),

2. Decrement Z-ccordinate of the eye (the camera gets closer to the house),

3. Quit: When selected, the program terminates.

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