-
Notifications
You must be signed in to change notification settings - Fork 0
/
MetalViewApplication.mm
35 lines (26 loc) · 814 Bytes
/
MetalViewApplication.mm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// MetalViewAppDelegate.mm
// MetalExample
//
// Created by Brent on 6/1/20.
// Copyright © 2020 James Hughes. All rights reserved.
//
#import "MetalViewApplication.h"
#import "MetalViewController.h"
#import <Foundation/Foundation.h>
@implementation MetalViewAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
self.window.backgroundColor = [UIColor whiteColor];
self.window.rootViewController = [[MetalViewController alloc] init];
[self.window makeKeyAndVisible];
return YES;
}
@end
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([MetalViewAppDelegate class]));
}
}