Two OpenGL-assignments

Here are two OpenGL-assignments. The second is fairly hard for a first go with OpenGL. That is the reason for the first assignment. It will help you to learn how to handle simple transformations such as translations and rotations. This is usually the hardest part when one is new to OpenGL.

How to compile and link

If your program is called lab.c give the command:

gcc -O3 lab.c -lGL -lglut -lm

When debugging you do not need to switch on optimization (-O3).