3D Graphics

Cocoa provides a direct interface for 3D drawing by supporting OpenGL. OpenGL is a multiplatform graphics standard that provides a portable set of 2D and 3D APIs for graphic applications. Apple provides several Cocoa-based sample applications at http://developer.apple.com/samplecode/Sample_Code/Graphics_3D.htm. Several examples that use OpenGL with Cocoa are provided including Cocoa_InitGL, NSGL_Teapot, OpenGLFastTexDemo, and Simple_AppKit.

OpenGL is a large and complex subject that is beyond the scope of this book, but support for OpenGL is an important aspect of Mac OS X and Cocoa. The definitive printed reference for OpenGL is OpenGL Reference Manual Third Edition by the OpenGL Architecture Review Board, edited by Dave Shreiner, ...

Get Cocoa® Programming 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.