istereo
diff src/istereoAppDelegate.m @ 0:1bb950d0976b
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 06 Sep 2011 08:07:14 +0300 |
parents | |
children | ff055bff6a15 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/istereoAppDelegate.m Tue Sep 06 08:07:14 2011 +0300 1.3 @@ -0,0 +1,46 @@ 1.4 +// 1.5 +// istereoAppDelegate.m 1.6 +// istereo 1.7 +// 1.8 +// Created by nuclear on 9/6/11. 1.9 +// Copyright __MyCompanyName__ 2011. All rights reserved. 1.10 +// 1.11 + 1.12 +#import "istereoAppDelegate.h" 1.13 +#import "EAGLView.h" 1.14 + 1.15 +@implementation istereoAppDelegate 1.16 + 1.17 +@synthesize window; 1.18 +@synthesize glView; 1.19 + 1.20 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 1.21 +{ 1.22 + [glView startAnimation]; 1.23 + return YES; 1.24 +} 1.25 + 1.26 +- (void)applicationWillResignActive:(UIApplication *)application 1.27 +{ 1.28 + [glView stopAnimation]; 1.29 +} 1.30 + 1.31 +- (void)applicationDidBecomeActive:(UIApplication *)application 1.32 +{ 1.33 + [glView startAnimation]; 1.34 +} 1.35 + 1.36 +- (void)applicationWillTerminate:(UIApplication *)application 1.37 +{ 1.38 + [glView stopAnimation]; 1.39 +} 1.40 + 1.41 +- (void)dealloc 1.42 +{ 1.43 + [window release]; 1.44 + [glView release]; 1.45 + 1.46 + [super dealloc]; 1.47 +} 1.48 + 1.49 +@end