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