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, ...
Get OpenGL Programming on Mac OS X: Architecture, Performance, and Integration now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.