CPEN 461/661, Spring 1997 |
OpenGL Tutorial |
This program essentially opens a window, clears it, sets the drawing color, draws the object, and flushes the drawing buffer. It then goes into an infinite loop accepting events and calling the appropriate functions.
It was compiled using the command:
gcc -o Hello_World Hello_World.c -lX11 -lMesaGL -lMesaGLU -lMesatk -lm