CSC 305 - Fall 2007

Assignment 1: 5%

OpenGL/Qt/C++

Due date: 8am Monday October 1st 2007

 

Assignment Objective: This excersize is just to get you started writing graphics programs.

Write a C++ program using Qt and OpenGL that puts up a window containing a graphics pane and a control pane (see example). Option: You can use two windows. The graphics can be simple 2D OpenGL primitives that can be controlled by buttons and sliders etc. in the control pane. (Use your favourite Graphics/GUI API as an alternative).

One window is to control your 2D objects and the other is for the OpenGL graphics. You should be able to pick the 2D objects with the mouse and control them through sliders or the mouse.

You may write the program using either Windows or Linux.

Use your imagination as to what you draw.

Note: the example (Windows) assignment is worth a C at best. (You will need the Qt .dll too)

( Linux example to follow later this week.)

How to get an A:

1. Highlight in some way the object that is selected
2. Provide the ability to create new objects.
3. Provide save and restore of objects to file.
4. Editing tasks could be :

a) change colour
b) change size (scale )
c) change orientation (rotate)
d) delete objects

All of the above would certainly get full marks.

For the keeners also add:

5. Provide undo

6. add texturing