Configuring OpenGL under Mac Xcode

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.