PDA

View Full Version : Question about Xcode targets and templates


ferum
2006.08.09, 03:03 PM
Ok, I recently (yesterday) started switching my game over to SDL, and have run inot trouble. I am getting the error that yells at me for doing stuff outside of c99 mode. Usually to fix this I go and click on the target icon, then click the Info button up at the top of the project window, then go to the build tab, then switch the C languege dialect to c99. But this time when I did all of that and went to the build tab it didn't list the "C languege dialect" option. What gives?
Then I realized that the target icons for the two programs were different. For my old Glut based program it is the 'a' made out of the pencil, paintbrush and ruler. But for my new SDL program it is just the bull's eye. What kind of targets have bull's eye target icons? [Note: I'm using the SDL and openGL aplication" template]
Also would it be possible for me to make my own Xcode SDL and openGL template?
Its annoying me already that every time I use the provided one I have to delete all the "atlantis" crap and take out the glut framework and put in the SDL template and fix all the other stuff wrong with it.

Thanks in advance for any help!

szymczyk
2006.08.09, 04:21 PM
What kind of targets have bull's eye target icons? [Note: I'm using the SDL and openGL aplication" template]
Also would it be possible for me to make my own Xcode SDL and openGL template?

Non-native targets have bullseye target icons. Choose Project > Upgrade to Native Target to convert it to a native target.

What version of Xcode are you using? If you're using Xcode 2.1 and later, the latest version of SDL includes Xcode templates that have native targets.

Yes, you can create your own SDL and OpenGL project template. The easiest way to do so is to create a copy of the SDL OpenGL Application folder that contains the original template. Give the folder whatever name you like, such as My SDL OpenGL Application. Open the Xcode project that resides in your copy of the template folder. Do what you want to make the project a suitable template: remove the atlantis folder and GLUT framework, replace the main.c file with a simple main.c file, and so on.