I compiled and tested all code using gcc and/or g++ on Cygwin. To compile the code, use the following command:
gcc *.c -l glu32 -l glut32 -l opengl32
Clicking on an assignment link will provide you with a list of source code, a spec in pdf format, and an executable compiled for use in Cygwin. You can also download all of the code, executables, and specs in a zip file (3.77 MB).
This is the first OpenGL program we did. It is a Cartesian coordinate system with sine and cosine waves.
Plethora of primitives. Right-click for a menu to display each primitive.
CPSC360 font. This is a font we did as a class.
This program displays a three-dimensional Sierpenski gasket.
This program displays a rotating cube. Right-click for a list of options.
This program produces a 3-D model of the solar system.
loadtga.c - Targa image loader for OpenGL
images - Note: these must be in the ./img folder!
This program is a 3-D rendering of my room. It features diffuse/ambient/specular lighting, texture mapping, and an animated ceiling fan.