CS 5600 - Spring 2009

Homework Assignment 1

pixel and color starter (100 points)

Handed out: Jan. 20, 2009
Due: midnight, Jan. 26, 2009

You will write a program that draws the University of Utah logo into an image (GO UTES). 
You may chose any logo you want to but I suggest the plain block U in red
Use the program found on getting started as a guide to using OpenGL. 
This program draws a 256x256 white square in the middle of a 512x512 window.
Please use the void drawPoint(x,y,r,g,b) function to color your pixels.  x and y are ints while r,g,b are floats.

1. You program should compile and run on the CADE (either windows or linux)

2. You should leave a 10-pixel white border around the logo.

3. You should make the logo with a 'nice' aspect ratio (similar to the examples in the link above).

Output

The program should draw its output to an OpenGL window.

Submission

use the handin routine in the CADE Lab. You can with zip or tar your solution. You should comment your code appropriately and hand in a web-page that will serve as complete documentation. Please include a paragraph of difficulties and a paragraph of what you learned in this assignment.

The handin name for this lab is "lab1".

Windows users should use the Zip utility and handin a single zipped file. Unix users should use the tar program to do the same. We will recompile the programs to grade them. Make sure your workspace/program will compile for us. That is, be careful about your user-specific pathname variables! If you do this on a home machine, please allow sufficient time for porting to the CADE machines. We will grade based on compiling and running on the CADE machines.

Due to a bug in the handin program, do not include spaces in the names of the files that you submit, otherwise we will not receive them. For instance, "no spaces.txt" is not a valid filename and would not be received, while "no_spaces.txt" is valid. Please keep this in mind while handing in your assignment.