
Open xCode 3
Choose File -> New project
A dialog will appear as in picture 1
Choose Command Line Utility -> C++ Tool
A new window will open similar to the one you can see in picture 2
Then you must add the glut and openGl frameworks. To add a framework you must first select your target. This is found if you expand the grey arrow next to Targets. When you have the target selected go to Add -> Existing Frameworks. In picture 3 is what you'll see.
From here go ahead and click the little plus sign on the bottom left corner of the window. If all goes well you'll see something like what's in picture 4. Search in the list for OpenGl.framework and repeat the process to add Glut.framework.
And you're done! You now have a basic empty project to do anything you need.
I'm just gonna go ahead and show how to do two other operations you might need.
Adding an existing source.
Select your target (under Targets on the left of the project window). Then right click and you'll see something like picture 5. Select Add -> Existing File. This will show you a screen to browse to where the file is. Select the file you want and you're done!
Creating a header file for your c++ file
Select your target (under Targets on the left of the project window). Then right click and you'll see something like picture 5. Select Add -> New File.
Something like picture 6 will appear. Go for header file under C and C++. A no brainer, right? But I had some problems with this so I decided to post it anyway.
Hope you'll enjoy.

0 comentários:
Enviar um comentário