istereo
annotate src/istereoAppDelegate.m @ 15:32503603eb7d
ah!
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 07 Sep 2011 09:17:15 +0300 |
parents | |
children | ff055bff6a15 |
rev | line source |
---|---|
nuclear@0 | 1 // |
nuclear@0 | 2 // istereoAppDelegate.m |
nuclear@0 | 3 // istereo |
nuclear@0 | 4 // |
nuclear@0 | 5 // Created by nuclear on 9/6/11. |
nuclear@0 | 6 // Copyright __MyCompanyName__ 2011. All rights reserved. |
nuclear@0 | 7 // |
nuclear@0 | 8 |
nuclear@0 | 9 #import "istereoAppDelegate.h" |
nuclear@0 | 10 #import "EAGLView.h" |
nuclear@0 | 11 |
nuclear@0 | 12 @implementation istereoAppDelegate |
nuclear@0 | 13 |
nuclear@0 | 14 @synthesize window; |
nuclear@0 | 15 @synthesize glView; |
nuclear@0 | 16 |
nuclear@0 | 17 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
nuclear@0 | 18 { |
nuclear@0 | 19 [glView startAnimation]; |
nuclear@0 | 20 return YES; |
nuclear@0 | 21 } |
nuclear@0 | 22 |
nuclear@0 | 23 - (void)applicationWillResignActive:(UIApplication *)application |
nuclear@0 | 24 { |
nuclear@0 | 25 [glView stopAnimation]; |
nuclear@0 | 26 } |
nuclear@0 | 27 |
nuclear@0 | 28 - (void)applicationDidBecomeActive:(UIApplication *)application |
nuclear@0 | 29 { |
nuclear@0 | 30 [glView startAnimation]; |
nuclear@0 | 31 } |
nuclear@0 | 32 |
nuclear@0 | 33 - (void)applicationWillTerminate:(UIApplication *)application |
nuclear@0 | 34 { |
nuclear@0 | 35 [glView stopAnimation]; |
nuclear@0 | 36 } |
nuclear@0 | 37 |
nuclear@0 | 38 - (void)dealloc |
nuclear@0 | 39 { |
nuclear@0 | 40 [window release]; |
nuclear@0 | 41 [glView release]; |
nuclear@0 | 42 |
nuclear@0 | 43 [super dealloc]; |
nuclear@0 | 44 } |
nuclear@0 | 45 |
nuclear@0 | 46 @end |