Set up a TerrainViewController with an MTKView
This commit is contained in:
parent
28caab9052
commit
75f23a94a4
3 changed files with 36 additions and 2 deletions
|
@ -13,9 +13,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
|
||||
@IBOutlet weak var window: NSWindow!
|
||||
|
||||
|
||||
func applicationDidFinishLaunching(_ aNotification: Notification) {
|
||||
// Insert code here to initialize your application
|
||||
let terrainVC = TerrainViewController()
|
||||
window.contentViewController = terrainVC
|
||||
window.makeKeyAndOrderFront(nil)
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ aNotification: Notification) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue