We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is OpenGL® GLU?

By Eugene P.
Updated: May 17, 2024
Views: 6,761
Share

The OpenGL® utility library (GLU) is a collection of graphical programming functions that provides added functionality for the basic OpenGL® routines. The basic OpenGL® library supplies a basic framework for rendering three-dimensional (3D) graphics, and the OpenGL® GLU implements functions that work with the framework to give the programmer an expanded set of tools to use in performing more complex operations in a simpler manner. There also are several functions within the OpenGL® GLU that make advanced primitive types such as cylinders and spheres readily available. In addition to support for complex modeling systems, the GLU additionally includes functions to perform matrix operations, convenient translations for the scene camera and viewport, and more human readable function wrappers for common 3D graphics processing.

Features of the OpenGL® GLU attempt to expand on the basic functions that are included in the standard OpenGL® library. Instead of focusing simply on rendering individual polygons, the GLU attempts to provide more functions that help to create and manage entire scenes. These include a number of routines that make it easier to translate the camera position around arbitrary points as well as simplified functions that help to establish the viewing volume.

Another part of the OpenGL® GLU that is not in the basic library is the implementation of advanced primitive shapes. Whereas the standard library only provides functions to draw triangles or polygons, the GLU has functions that can construct objects such as spheres, boxes and cylinders. Although these functions can easily be written by a 3D graphics programmer, it can save time to use versions that are already tested and bug-free.

In addition to shape primitives, there also is basic support for non-uniform rational b-splines (NURBS). These are very efficient geometrical shapes that can bend and flow organically and use very little memory. The support for NURBS in the GLU allows a programmer or artist to have almost complete freedom in designing shapes and objects within a scene.

A high-level ability that the OpenGL® GLU supplies is a mipmapping framework. Mipmapping is a form of texture mapping that helps to increase the speed of rendering a scene. This is achieved by using more than one image for the texture. Each texture is made from several similar images, each one smaller and less detailed than the last, so objects that are at a distance use less detailed textures and are consequently rendered much faster.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.

Editors' Picks

Discussion Comments
Share
https://www.wisegeek.net/what-is-opengl-glu.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.