Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.0, 2007-10-22
Demonstrates using Cocoa with OpenGL, including window setup and event handling.
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.