I'm just getting started with OpenGL with lot's of ideas on my head that i want to experiment, i started reading the OpenGL Superbible book which looks amazing but i am having a super hard time making any of the examples work on xcode 4.

Can anyone tell me how to set up a project to run any of this OpenGL Examples?


BTW: I am reading the 4th edition and not the 5th one since someone recommended me doing so.


1 Answer 1


I can see that you are trying to learn OpenGL 2.1. The good thing about this release is that it easy to get started with and get something up on the screen. The bad thing about OpenGL 2.1 is that things has changed quite a bit in OpenGL 3.x and 4.x, so when you want to take your graphics programming a step further, you need to learn a few more things.

Anyway there is a lot of tutorials about how to setup XCode with OpenGL 2.1. A good one is:

  • \$\begingroup\$ thanks! So you think it's a bad idea to learn 2.1 then? \$\endgroup\$
    – asheinfeld
    Aug 18, 2012 at 21:40
  • \$\begingroup\$ I still think 2.1 is quite important. Most examples and tutorials on the internet are a few years old and uses 2.1. In the end it is up to you to decide. OpenGL 3.x has a very steep learning curve and you will be quite challenged in the beginning, whereas in OpenGL 2.1 the concepts are introduced more slowly - but you will here learn come legacy techniques no longer used in OpenGL 3.x. \$\endgroup\$ Aug 19, 2012 at 8:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .