OpenGL in Mac OS X: The Core OpenGL (CGL) API and the NSOpenGL Classes

In Apple Computer’s Mac OS X, OpenGL is an integral part of the windowing system. In fact, the window manager Quartz uses OpenGL to display windows on the screen and perform all of the window transitions (like minimizing, etc.). On Mac OS X, there are two methods for setting up an application to use OpenGL. They are as follows:

• Using CGL, the “Core OpenGL Library”, which is a low-lever access API similar to those of the X Window System and Microsoft Windows.

• Using the NSOpenGL Objective-C classes for direct support in Apple’s Cocoa framework.

Mac OS X also supports GLUT as an application framework, but its use for complex application development is discouraged, generally ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition 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.