The above example is a three-dimentional Gasket. #include #include #include #include const GLfloat EDGE = 50.0 const GLfloat SQR3 = sqrt ( 3 ) const GLfloat SQR6 = sqrt ( 6 ) bool is_equal ( GLfloat a, GLfloat b ) // main.cpp // Three-Dimentional Gasket // // Created by Leon on 1/6/13. Select project Name -> Target Name -> Build Phases -> Link Binary With Libraries.Ĭlick the plus button to add OpenGL and GLUT frameworks. Then choose a location for you project and click Next. Create a ProjectĬreate a new OS X Application. Download & Install XCodeĭownload XCode freely from apple’s offical website: may cost you some time, because XCode is huge. To use OpenGL in Mac, you need to install XCode first. Unlike other platforms, in Mac, you don’t need to install OpenGL independently. ![]() But I still write this article, because maybe someone are finding something like a quick start. ![]() Why? because it’s too easy to set up an OpenGL project for Mac. ![]() If you search this topic, you find few people are talking about this.
0 Comments
Leave a Reply. |