CPSC360 - Computer Graphics in OpenGL

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

Projects and Source Code

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).

Assignment 1

360_pa1.c
spec
graph.exe

This is the first OpenGL program we did.  It is a Cartesian coordinate system with sine and cosine waves.

Assignment 2

360_pa2.c
spec
primitives.exe

Plethora of primitives.  Right-click for a menu to display each primitive.

Assignment 3

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.

Assignment 4

360_pa4.c
spec
readme
gasket3d.exe

This program displays a three-dimensional Sierpenski gasket.

Assignment 5

cube.c
spec
readme
cube.exe

This program displays a rotating cube. Right-click for a list of options.

Assignment 6

planets.c
planet_info.txt
spec
readme
planets.exe

This program produces a 3-D model of the solar system.

Assignment 7

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.