| week1-1 |
- Copy the file /classes/cs3114/RayTracing/files/useglut to
your home directory and make sure it is executable by you.
- Make sure your PATH (in .bashrc and .bash_profile) has your home directory
in it.
- Make a directory for this class and copy the file /classes/cs3114/RayTracing/files/hello.cpp
to that directory.
- Go to that directory and compile the program with the command
useglut hello.cpp
You may get a lot of warnings but an executable program named hello
should now exist.
- Run the program.
- Change the title of the window.
- Change the dimensions of the window.
- Change the position on the screen of the window.
- Change the background color.
|
| week1-2 |
- Copy the file /classes/cs3114/RayTracing/files/horiz_stripes.cpp
to your directory.
- Compile and run the program, making sure you understand what the gl
commands are doing.
- Change the colors of the stripes.
- Change the width of the stripes.
|
| week1-3 |
- Copy the file /classes/cs3114/RayTracing/files/horiz_stripes2.cpp
to your directory.
- Compile and run the program, making sure you understand what the changes
are from the previous version.
|
| week1-4 |
- Copy the file /classes/cs3114/RayTracing/files/horiz_stripes3.cpp
to your directory.
- Compile and run the program, making sure you understand what the changes
are from the previous version.
|
| week1-5 |
Write a program that draws vertical stripes on the screen.
Compile and run the program.
|
| week1-6 |
Write a program that makes a checkerboard on
the screen. Compile and run the program.
|