Cocoa OpenGL

Last Revision:
Version 1.0, 2007-10-22
Demonstrates using Cocoa with OpenGL, including window setup and event handling.
Build Requirements:
Xcode 2.4
Runtime Requirements:
Mac OS X Tiger v. 10.4.x

If you are new to OpenGL, OpenGL on Mac OS X or ready to move up from GLUT, this sample will show you how to create a window as the destination for drawing and handle all the basic events needed for interactivity within the Cocoa event model.

Also included is a texture class for strings, showing how to use an NSImage to write a string into and then texture from for high quality font rendering. This sample goes on to show a trackball like camera system.