OpenGL and GLUT with Xcode

Screen Shot 2016-01-10 at 10.01.06 PM

You can link frameworks, such as OpenGL.framework and GLUT.framework, by clicking Build Phases at the top of the project editor.

Screen Shot 2016-01-11 at 9.51.46 AM

I understand that using GLUT is a kind of old-fashioned way at least on OS X, and maybe I should use Metal instead.

https://developer.apple.com/osx/
OS X El Capitan brings Metal to Mac, giving your apps unprecedented graphics and computing power. With Swift 2.0, you can write even better code thanks to advanced new features. And new extensibility APIs let your apps work seamlessly with Photos and Safari.

Screen Shot 2016-01-11 at 9.17.20 AM

Anyway, with GLUT you will get:

Screen Shot 2016-01-10 at 10.01.11 PM