Version: 1.0

Posted: 2007-10-22

Build Requirements: Xcode 2.4

Runtime Requirements: Mac OS X Tiger v. 10.4.x

View Source Code:

Download Sample (“CocoaGL.zip”, 467.6K)
Download Sample (“CocoaGL.dmg”, 526.9K)



Description

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.

Document Revision History

Date Notes
2007-10-22Demonstrates using Cocoa with OpenGL, including window setup and event handling.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.