Cocoa OpenGL Template
May 16, 2014
As well as creating an alternative OpenGL template for iOS, I’ve now created a template for OS X as well. This template is based off of the standard Cocoa application template, however also includes classes similar to GLKView and GLKViewController on iOS, as well as my GLProgram class. This makes it really easy to get started with OpenGL on OSX.
There are a few differences to the iOS version:
- Targets OpenGL 3 (the iOS version targets OpenGL ES 2)
- Uses the mouse to rotate the cubes (you can easily switch back to using an animation though)
- Windowed (with fullscreen support) by default, however it also includes commented out code in the AppDelegate file that can be used to create a fullscreen window
You can download the template from GitHub to get started.
♦