The OpenGL Utility Library (GLU) is a computer graphics library for OpenGL.
It consists of a number of functions that use the base OpenGL library to provide higher-level drawing routines from the more primitive routines that OpenGL provides. It is usually distributed with the base OpenGL package. GLU is not implemented in the embedded version of the OpenGL package, OpenGL ES.
Among these features are mapping between screen- and world-coordinates, generation of texture mipmaps, drawing of quadric surfaces, NURBS, tessellation of polygonal primitives, interpretation of OpenGL error codes, an extended range of transformation routines for setting up viewing volumes and simple positioning of the camera, generally in more human-friendly terms than the routines presented by OpenGL. It also provides additional primitives for use in OpenGL applications, including spheres, cylinders and disks.
GLU functions can be easily recognized by looking at them because they all have glu
as a prefix. An example function is gluOrtho2D
which defines a two dimensional orthographic projection matrix.
Specifications for GLU are available at the OpenGL specification page
Famous quotes containing the words utility and/or library:
“Moral sensibilities are nowadays at such cross-purposes that to one man a morality is proved by its utility, while to another its utility refutes it.”
—Friedrich Nietzsche (18441900)
“I view askance a book that remains undisturbed for a year. Oughtnt it to have a ticket of leave? I think I may safely say no book in my library remains unopened a year at a time, except my own works and Tennysons.”
—Carolyn Wells (18621942)