O'Reilly logo

OpenGL Programming on Mac OS X: Architecture, Performance, and Integration by J. D. Sullivan, Robert P. Kuehne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. The AGL API for OpenGL Configuration

Overview

OS X has both Carbon and Cocoa windowing interfaces to OpenGL. AGL, or “Apple OpenGL” is the Carbon windowing interface to OpenGL. Like CGL and Cocoa, the AGL interface provides a set of routines for managing pixel formats, OpenGL contexts, and drawables (a.k.a surfaces).

As far as Apple technologies are concerned, AGL is overshadowed by the more modern and objectified Cocoa. Still, AGL has its place in today’s applications and is still a first-class citizen when it comes to Apple’s ongoing support of the API.

Despite AGL being “the old way” to do things from the perspective of hard-core Apple technology buffs, it has its advantages. Because Cocoa is defined as an Objective-C class hierarchy, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required