Computer Systems Lab
Collaboration and Distance Learning Ideas 2003
Computer Graphics with OpenGL - Download and run some introductory OpenGL programs
- Sample OpenGL programs:
- basicwindow.c This program plots points in a parabola.
Also see
basicwindow.py
(Python version)
- window1x.c Demonstrates drawing xy axis, plus prints text on the graphics window
Also see window1c.py
(Python version)
window3x.c Demonstrates sub-windows and keyboard and mouse "event callback" functions
- Shapes and
Animation: parabola.c,
a program from OpenGL Graphics
resource page
- More Sample introductory programs
- basicanimate.c A simple animation version of the curve plotting program
- basicanimate4.c This one includes text on the graphics screen
- basicanimate5.c This one demonstrates a Menu on the graphics screen
- cannon3d.cpp Uses gluLookAt() to "pan" through the projectile program
- scene2.c, pans through a 3D scene with Z and Y, using gluLookAt
- References for Glut API definitions
- Spring 2002 class assignments - a good resource page
- More good intro OpenGL programs, plus work from past students
- Sample programs from Mark Kilgard
- Adding a menu, plus animated solar system and teapot
- Sample code from OpenGL.org, the "Redbook" examples are from our textbook.