xcode v3: some explanation of the automated generated code

Posts: 164
Joined: 2010.10
Post: #1
hi all!
i'm a newbie in iphone programming, i've experience in c, c++ programming and opengl.
i'd like to make games in iphone, so i have downloaded the latest version of xcode, and bought some books and seen video tutorial from:
(very great tut!)
however it seem a bit outdated, in fact when in the tut.1 explanes some function in particular for display, timing ecc...
in my xcode, the code generated automatically when i start a new project, is a bit different, and the changes made in my code (trying to copy what is in the tut.1) make the program not working.
even the number of files generated automatically are different.

my question is:
where i can find some newer tut that explains what is generated automatically and what to modify?
the newer program template is made with different functions from the old one...it is better to use this new functions?(mode stable?less filckering...?)

Quote this message in a reply
Posts: 65
Joined: 2009.03
Post: #2
Unfortunately the template has changed a lot since the tutorials were created. I've not seen any tutorials that cover the new template, but I will be posting some new tutorials soon.

I'm not going to be able to go over ALL the ground covered by the current tutorials, but will run through the new template.


iPhone Game Development Blog - 71Squared
Quote this message in a reply
Posts: 40
Joined: 2009.05
Post: #3
I went through the first set of NeHe tutorials and ported them to the new template and ES2.0 if that helps at all.


The place you want to start customising the stock xocde template to add more drawing is in the view controller. Have a look at:

- (void)drawFrame

If you don't care about supporting ES2.0 then you can change these lines in the awakeFromNib from this
EAGLContext *aContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
    if (!aContext)
        aContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];

to just this:

EAGLContext  *aContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];

If you do that then you can run through the NeHe tutorials that have been ported to the iPhone ES1.0 here http://iphonedevelopment.blogspot.com/20...le-of.html
Quote this message in a reply
Posts: 164
Joined: 2010.10
Post: #4
many thanks to all
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Automated puzzle testing maximile 6 5,205 Jan 23, 2009 02:40 PM
Last Post: maximile