Loading screens

Apprentice
Posts: 7
Joined: 2009.03
Post: #1
Hi,

in loads of games while loading, there is a loading bar.
Well, I tried to do this, but no luck. I want at least when application is starting switch images (Default.png to ie. company logo etc)
I did it like this:
Code:
kTexture_Title = [[Texture2D alloc] initWithImage: [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"main" ofType:@"png"]]];
[kTexture_Title drawInRect:CGRectMake(0, 0, 320, 480)];
[glView swapBuffers];
...some more loading...

Any ideas what I am doing wrong?
Quote this message in a reply
Apprentice
Posts: 7
Joined: 2009.03
Post: #2
Hey you guys,

nobody is having this problem??
Maybe I explained it badly.

Well my problem is that I am loading whole bunch of stuff in applicationDidFinishedLaunching method. After that I start the timer and thats the moment the images got switched. No matter what I try I can't switch it in the middle of loading!!!Mad

The loading on device take more than 10 sec which is pretty annoying just to watch on 1 picture. I want to switch images.

Please help.Wink
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #3
Bring the image swapping into a new thread.

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Post Reply