Homework 4
Short Description:
Duplicate the line tests from homework 2 in OpenGL.
This assignment is worth 20 points.
Goals
When you finish this homework, you should have:
- extended an existing OpenGL program to draw multiple items.
- created several classes which interact with openGL to display items.
- used GLUT to control the display.
Formal Description
Write an OpenGL program to display the Line Test star burst, Circle data and the Dragon curve from homework 2. These should all be scaled to be centered on (0,0) and have a maximum value of one unit away from this point. This will require some minor adjustment of the data.
Your program should allow the following interaction
- "L" should enable the display of the Line Test data.
- "l" should disable the display of the line test data.
- "C" should enable the display of the Circle test data.
- "c" should disable the display of the Circle test data.
- "D" should enable the display of Dragon test data.
- "d" should disable the display of Dragon test data.
- "Q" or "q" should allow the user to quit the program.
You may add additional data sets, please provide appropriate keypresses to
display these data sets.
You should be able to display multiple data sets at the same time.
You don't need to worry about color (yet).
You should display a help menu when your program starts listing all of the command keys.
There is a chance we will extend this code to include color.
To make life easy, we will be using Makefiles. You should save the following file in your directory and use it to compile.
Notes
This program must compile and run on the department's linux workstations.
You should create a class for each of the different tests.
Submission
Create a tar file containing the source code for the main program and both shaders, along with the Makefile required to build your program. This should be submitted to your instructor via email by the due date.