vrshoot
view src/ios/app_delegate.m @ 3:c179c72369be
rename candy->vr
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 03 Feb 2014 08:52:13 +0200 |
parents | |
children |
line source
1 #import "app_delegate.h"
2 #import "glview.h"
4 @implementation AppDelegate
6 - (BOOL)application: (UIApplication*)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
7 {
8 window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] applicationFrame]];
9 glview = [[GLView alloc] initWithFrame: window.frame];
11 [window addSubview: glview];
12 [window makeKeyAndVisible];
14 //window.rootViewController = [[UIViewController alloc] init];
16 [glview startAnimation];
17 return YES;
18 }
20 - (void)applicationWillResignActive: (UIApplication*)application
21 {
22 [glview stopAnimation];
23 }
25 - (void)applicationDidBecomeActive: (UIApplication*)application
26 {
27 [glview startAnimation];
28 }
30 - (void)applicationWillTerminate: (UIApplication*)application
31 {
32 [glview stopAnimation];
33 }
35 - (void)dealloc
36 {
37 //[window.rootViewController dealloc];
38 [window release];
39 [glview release];
41 [super dealloc];
42 }
44 @end