Question: Write Open GL program to draw the following shapes: [80 Marks] 1. Points [5] [5] [10] [20] [20] [20] 2. Line 3. Triangle 4.
Write Open GL program to draw the following shapes: [80 Marks] 1. Points [5] [5] [10] [20] [20] [20] 2. Line 3. Triangle 4. Triangle-strip 5. Triangle-fan 6. Polygon. Your program should include the comments and the output of the above shapes. Note: Write only one program and include different functions to draw the shapes
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
include for MS Windows include GLUT include gluh and glh include Handler for windowrepaint event Call back when the window first appears and whenever ... View full answer
Get step-by-step solutions from verified subject matter experts
