How does these classes tie together.

View previous topic View next topic Go down

How does these classes tie together.

Post  hosthvo on Fri Mar 06, 2009 12:54 am

Hello everyone,
I'm a programmer, but not a graphics programmer and not familiar with how this engine is tied together. I'm trying to learn how to programming a game to expand my knowledge of programming in general. I'm having trouble piecing how the tutorials are put together. Can someone tell me how the different classes fit together. I haven't had much luck finding documentation to help me.
I notice that there are the png, bullet, jpeg, luna, theora, vorbis, zlib, and sio2, these must be source classes that I need to include with my project in order to use them.

And the template.mm is where the code goes.

But how does the EAGLView.h/.mm and templateAppDelegate fit into the equation?

Also, how does the application know to use the template.mm when there is a touch event. Is it configured somewhere, it is there a convention that I'm missing.

Thanks in advance

hosthvo

Posts : 4
Join date : 2009-02-03

View user profile

Back to top Go down

Re: How does these classes tie together.

Post  sio2interactive on Fri Mar 06, 2009 1:13 am

But how does the EAGLView.h/.mm and templateAppDelegate fit into the equation?

>> What I did is take a standard iPhone OpenGL ES project auto-generated by XCode and then add the bits and pieces to run SIO2. The only exception is the template.mm and .h that I create manually and link to the project in order to make things more clear...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Thanks for your reply

Post  hosthvo on Fri Mar 06, 2009 9:53 am

Thank you for your reply.
I'm having trouble understanding the responsibility of that class. Is it just use as a connector? Can you tell me what is the purpose of those class.

hosthvo

Posts : 4
Join date : 2009-02-03

View user profile

Back to top Go down

Suggested readings...

Post  goldfrapp0x0309 on Fri Mar 06, 2009 10:06 am

http://developer.apple.com/iphone/gettingstarted/docs/creatingiphoneapps.action

They're it explains the basic skeleton of an iphone app. In short, the app delegate is the "introducer of your application". Takes care of maintainance and communication with OS etc.

Good Luck
avatar
goldfrapp0x0309

Posts : 43
Join date : 2009-02-28

View user profile

Back to top Go down

Re: How does these classes tie together.

Post  oioioi on Fri Mar 06, 2009 3:41 pm


oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: How does these classes tie together.

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum