Open GL resources

Man Pages

2D example

3D example

Cylinder.cpp Cylinder.h

LookAt Example

mainLightingTexture.cpp World.cpp World.h world-bathymetry_1024x512.raw

HermiteExample.cpp hermite.cpp hermite.h

OpenGL examples site

Most versions of Linux will already have openGL support, although you will have to download drivers for your specific video cards to get accelerated graphics.

OpenGL for Linux (Mesa)



Given the file vector.cpp, the following two lines, done one after another, will compile the code.
 g++ -c -I/home/cs/cs770/public/include vector.cpp

 g++ -L/home/cs/cs770/public/lib vector.o -L/usr/lib
 -L/home/cs/cs770/public/lib -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXmu
 -lXext -lX11 -ldl -o vector
The first line creates the object code, while the second line will link it with the necessary libraries to create the executable. They can be put into a script file which should be made executable.

An important note: This will only compile a 32 bit cisunix system (done on zeno in this case).  I can only imagine the libraries in the cs770/public/lib directories are compiled for 32 bit architectures.  This will not compile on gauss.