Contents /
Previous /
Next
GLUT and GLU and GLX and WGL
The OpenGL Utility Toolkit (GLUT)
by Mark J. Kilgard
is a cross-platform
library of utilities for OpenGL programs:
- system-level I/O
- window control
- keyboard and mouse input
- Geometric primitives (solid and wireframe mode):
cubes, spheres, and the Utah teapot
All GLUT functions start with the glut prefix, for
example, glutPostRedisplay.
Freeglut and its spin-off, OpenGLUT, are open source
alternatives to GLUT.
GLU is the OpenGL Utility Library,
it provides higher-level drawing routines:
- Additional primitives
including spheres, cylinders and disks
- Mapping between screen- and world-coordinates
- Generation of texture mipmaps
- Drawing of quadric surfaces
- NURBS
- Tessellation of polygonal primitives
- Interpretation of OpenGL error
- Extended transformations for
viewing volumes camera
GLU functions have glu as a prefix, for example,
gluOrtho2D(), which defines a two
dimensional orthographic projection matrix.
GLX is a X-Windows application for OpenGL.
It does Low-level Frame buffer, Color handling, etc.
WGL does the same MS Windows (DOS)