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.
360_pa3.c
bob.c
chad.c
chris.c
darrell.c
eddy.c
joe.c
kevin.c
letters.h
oliver.c
rene.c
spec
readme
fonts.exe
CPSC360 font. This is a font we did as a class.
360_pa4.c
spec
readme
gasket3d.exe
This program displays a three-dimensional Sierpenski gasket.
This program displays a rotating cube. Right-click for a list of options.
planets.c
planet_info.txt
spec
readme
planets.exe
This program produces a 3-D model of the solar system.
360_pa7.c
keypress.h
loadtga.c - Targa image loader for OpenGL
loadtga.h
images - Note: these must be in the ./img folder!
spec
readme
myroom.exe
This program is a 3-D rendering of my room. It features diffuse/ambient/specular lighting, texture mapping, and an animated ceiling fan.