Edit AllPages

I’ve scanned through some of the pages that mention OpenGL on CocoaDev. None that I saw seem to have a good source for learning OpenGL under cocoa. Cocoa doesn’t really have glut (although I just built a glut) framework, and would like something that integrates with NSOpenGLView… any recs?

Well, a quick google search turned up this:

As I’m going through this site, it seems a little threadbare in terms of textual explanations…

If you guys think of something better, let me know!

The NeHE tutorials are excellent and most OpenGL examples at the site have Cocoa versions.

If you are trying to learn OpenGL, I suggest creating an OpenGL screen saver, that way you don’t have to worry about creating a full screen window etc.

If you haven’t already, check out Apple’s docs on OpenGL with Cocoa:

There’s quite a bit of sample code too:


You may also want to try a search for GLUT or OpenGL at: (a Cocoa mailing list)

One more thing: although they aren’t Cocoa specific, TheOpenGLRedBook ( ) and Blue Book ( ) are a must if you want to get a solid grasp on OpenGL and don’t mind spending the money. These aren’t technically beginner books, but think of them as the OpenGL User’s Manual. If you only buy one, buy the Red Book.

If you’re poor or don’t want to spend the money on hard copies, older editions of the Red Book and Blue Book are available for free online at and respectively.