Temporarily put on iOS, but also to get some assorted things, after all, is the school's homework, or to complete.
The job is for us to make a teapot with OpenGL--. and to three-dimensional can rotate the kind.
Well, that's not the point, but the point is I finally decided to develop this little demo on my Mac.
After all, although I installed a dual system, but the purpose is to not open win will not open win, not discrimination, but really che cut too much trouble.
In fact, I was not prepared to write this article, but the online tutorials are for the old version, I use the Xcode7.3, configuration a little different.
Beep a lot, the body begins!
1, create a new command line tool project under Xcode, this need not say much.
I use the C + + language, give the project named Myfirstteapot, say as if later will do mysecondteapot like??
After the new effect such as:
2. Click Build Phases,link Binary with Libraries (0 items)
See below there is a plus no, click on it! Post-click effects such as:
3, in the search for Glut.framework and opengl.framework the two framework, click Add
After adding the finished effect, such as:
4, now can be used happily!
We entered main.cpp to write a small demo. Well, go to class first, then come back and write!
Configuring OpenGL under Mac Xcode