23 @synthesize window = _window;
33 - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
35 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
37 if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
39 self.viewController = [[
ViewController alloc] initWithNibName:@"ViewController_iPhone" bundle:nil];
43 self.viewController = [[
ViewController alloc] initWithNibName:@"ViewController_iPad" bundle:nil];
45 self.window.rootViewController =
self.viewController;
46 [
self.window makeKeyAndVisible];
50 - (
void)applicationWillResignActive:(UIApplication*)application
60 printf(
"applicationWillResignActive\n");
63 - (
void)applicationDidEnterBackground:(UIApplication*)application
73 printf(
"applicationDidEnterBackground\n");
78 - (
void)applicationWillEnterForeground:(UIApplication*)application
85 printf(
"applicationWillEnterForeground\n");
88 - (
void)applicationDidBecomeActive:(UIApplication*)application
96 printf(
"applicationDidBecomeActive\n");
99 - (
void)applicationWillTerminate:(UIApplication*)application
107 printf(
"applicationWillTerminate\n");
Declaration of the callbacks in ObjectivC for iOS.
static GLFWwindow * window
The global glfw window handle.
typedef void(SL_STDCALL *cbOnImGuiBuild)(SLScene *s
Callback function typedef for ImGui build function.
Declaration of the main Scene Library C-Interface.
ViewController * viewController