OpenGL Example Programs

firstAttempt: The famous three dot program from page 46 of Hill.

polyLineDraw: OpenGL and mouse input.

polyTess: OpenGL polygon tesselation.

Toy1: Simplest 3D program - draw the teapot.

Toy2: Calls Starwars to make an X wing fighter.

Toy3: Rotating about x, y and z axes

ToyFinal: Big demo of all the objects list below

StarWars: Use matrix stack to make a Xwing

Function2D: A surface defined by the sinc function.

BezierPatch: One Bezier patch defined by 16 control points.

FractalTree: A simple fractal tree

SurfaceOfRevolution: A surface of revolution

FractalTerrain: Some Fractal Terrain

CSELogo: The Old CSE logo

ShapeManager: A class to manage all the shapes above.

trackball: Uses quaternions to create a virtual trackball. The code is converted from C code in GLUT, so it’s ugly.

Vector3D: 3D vector functions like cross product.

A zip file of everything.

Leave a Reply

You must be logged in to post a comment.


Bad Behavior has blocked 50 access attempts in the last 7 days.