Sha256: 6cb496a3b8d5e9fd7dda77b6cc436668acb89eb3d44e8f1a4d36df5ab2e3d840

Contents?: true

Size: 636 Bytes

Versions: 16

Compression:

Stored size: 636 Bytes

Contents

#include <Gosu/Platform.hpp>
#if defined(GOSU_IS_IPHONE)

#import "GosuAppDelegate.h"
#import <Gosu/Gosu.hpp>

Gosu::Window& window_instance();

@implementation GosuAppDelegate

- (BOOL)application:(UIApplication*)application
    didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
    self.window = (__bridge UIWindow*) window_instance().UIWindow();
    [self.window makeKeyAndVisible];
    
    return YES;
}

@end

int main(int argc, char* argv[])
{
    @autoreleasepool {
        Gosu::use_resource_directory();
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([GosuAppDelegate class]));
    }
}

#endif

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gosu-0.13.3 src/GosuAppDelegate.cpp
gosu-0.13.2 src/GosuAppDelegate.cpp
gosu-0.13.1 src/GosuAppDelegate.cpp
gosu-0.13.0 src/GosuAppDelegate.cpp
gosu-0.12.1 src/GosuAppDelegate.cpp
gosu-0.12.0 src/GosuAppDelegate.cpp
gosu-0.11.4.pre3 src/GosuAppDelegate.cpp
gosu-0.11.4.pre2 src/GosuAppDelegate.cpp
gosu-0.11.4.pre1 src/GosuAppDelegate.cpp
gosu-0.11.3.1 src/GosuAppDelegate.cpp
gosu-0.11.3 src/GosuAppDelegate.cpp
gosu-0.11.3.pre1 src/GosuAppDelegate.cpp
gosu-0.11.2 src/GosuAppDelegate.cpp
gosu-0.11.1 src/GosuAppDelegate.cpp
gosu-0.11.1.pre1 src/GosuAppDelegate.cpp
gosu-0.11.0 src/GosuAppDelegate.cpp