Introduction to OpenGL - L15a

Using a Timer

Shift-Click here to obtain the source for Lesson 15. Save it in your account as L15.c

Now compile and link this program using the file Makefile

% make L15

Note that there is NO extension required. This will compile the program L15.c, link it with the GLUT libraries and OpenGL libraries to make an executable program called L15. You can now run this by giving the command

% L15


Run the program now and check the cpu utilisation of the program when it is iconised or fully obscured. Also, it would be useful to also try out different values in the timer function to achieve different frame rates.

Now proceed to the next lesson.


(c) 2001 Dr R P Fletcher, Computing Service