Help getting started - nothing in main()
3 posters
Help getting started - nothing in main()
Hello everyone! I'm new to the forum but hope to be a frequent visitor. I'm a professional programmer with years of experience in a windows environment using C/C++ and other languages, but I'm a complete newbie to Cocoa Touch, XCode, Mac Programming, etc. I'm excited to get started but I have to admit I'm a little confused by Tutorial 1.
I opened the main function and there is practically nothing in it. What causes the cube to come up? Where can I find the code for that and what causes it to be executed? I put a breakpoint in the beginning of main and the loading screen gets up before Main is even executed. Also, this being an iphone app, where do the values for the args in Main come from? I've been diving through tons of general tutorials to xcode and cocoa touch and I did notice that there is a function in the delegate file that gets executed when the program loads. Is that where all the action is?
Thanks everyone for any pointers that will help me start going through the code. I guess my question boils down to where can I find the code in the tutorial 1 that makes everything happen, and what causes that code to be executed?
I opened the main function and there is practically nothing in it. What causes the cube to come up? Where can I find the code for that and what causes it to be executed? I put a breakpoint in the beginning of main and the loading screen gets up before Main is even executed. Also, this being an iphone app, where do the values for the args in Main come from? I've been diving through tons of general tutorials to xcode and cocoa touch and I did notice that there is a function in the delegate file that gets executed when the program loads. Is that where all the action is?
Thanks everyone for any pointers that will help me start going through the code. I guess my question boils down to where can I find the code in the tutorial 1 that makes everything happen, and what causes that code to be executed?
dillydadally- Posts : 3
Join date : 2009-06-12
Re: Help getting started - nothing in main()
I would HIGHLY recommend you start with Apple's docs and sample code on http://developer.apple.com/iphone/index.action. Once you understand that stuff and the structure of iPhone apps then come back to SIO2. Jumping right into making a game on a brand new platform probably isn't the most efficient way to get up and running.
uprise78- Posts : 228
Join date : 2008-10-31
Re: Help getting started - nothing in main()
All the rendering stuff is done in the template.mm file and sio2Init( &tmp_argc, tmp_argv ); is called in EAGLView.mm. You should check out those files first to see if you understand how it works
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Similar topics
» Can't even get started
» Getting started with Widgets
» Basic Getting Started Problem
» Getting started: questions about iphone game dev
» Getting started with Widgets
» Basic Getting Started Problem
» Getting started: questions about iphone game dev
Permissions in this forum:
You cannot reply to topics in this forum