Program 2, Due October 15 before class begins
Objectives: Learn basic 2D interactive graphics programming including rubber-banding, picking, and beginning transformations.
To Do: Write a children's "paint" program that lets the users draw colored circles, rectangles, and polygons (connected line segments/polylines). Use fltk for your GUI. Design a nice interface to allow users to select color for their objects, and also whether they want a line (border only) drawing or filled object. You should start with a basic fltk demo program found on the class web page.
Stage 1:
Stage 2:
Stage 3:
Grading: We must be able to compile/test your code. We’ll need your code, makefile, and README for this assignment.
80 pts: functionality (20-creating circles and rectangles, 20-creating polylines, 20-picking, 10-deletion, 10-usability of GUI).
20 pts: style (documentation/README/commenting/readability.
Extra credit can be gained for allowing the user to translate and scale the drawn objects.
Extra credit can also be gained for generating spheres and cubes instead of rectangles and circles.
Submission: The class locker exists. The name is cmps160-dw.f04.
To submit a program %submit cmps160-dw.f04 program2
filename filename …
For Example:
% submit cmps160-dw.f04 program2 main.cxx Makefile
gui.cxx gui.h gl_window.cxx gl_window.h README
To check what you have submitted %peek cmps160-dw.f04 program2