CPS 124/296.3
Fall 2001

Introduction to OpenGL


What is OpenGL?

High performance window independent system interface to graphics hardware.
Originally designed by SGI (1982).
Constructs a shape from geometric primitives.
Arranges objects in a 3D world.
Assigns various attributes to objects.
Converts objects into pixels.
No commands for windowing tasks or user interaction.
No high-level commands.

OpenGL Conventions

C Library of ~ 350 distinct functions.
All commands begin with gl.
All constants begin with GL_.
x-axis is horizontal; y-axis is vertical; z-axis denotes depth.

Examples

grid.cpp
an NxN grid of spinning teapots in the x-y plane
dna.cpp
an N strand DNA spiral centered at the origin
particles.cpp
a number of particles spinning in a trigonometric dance

References

Nate Robins Transforms tutor
 
GLUT man pages
GLUT specification
 
OpenGL man pages
OpenGL reference
 

Feedback?