Assignment#4
Solve the following questions.
Submit source code and a screenshot of the output. Copy source code and output screenshot in an
MS-Word (*.Docx) or HWP (*.hwp) file and upload in the Blackboard.
1.
Write an OpenGL program to build a house using some of the following OpenGL primitive constants.
•
GL_POINTS, GL_LINES, GL_POLYGON, GL_TRIANGLES, GL_TRIANGLE_STRIP,
GL_TRIANGLE_FAN, GL_QUADS
2.
Write an OpenGL program to draw two or more polygons with
n number of vertices and filled with a
pattern.
3.
Write your own C/C++ Program for Midpoint Ellipse Algorithm. Modify the program for a dotted
circumference.