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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access