Create a Renderer and copy over the Math library
This commit is contained in:
parent
75f23a94a4
commit
bb9507e3ec
4 changed files with 156 additions and 0 deletions
23
Terrain/Renderer.swift
Normal file
23
Terrain/Renderer.swift
Normal file
|
@ -0,0 +1,23 @@
|
|||
//
|
||||
// Renderer.swift
|
||||
// Terrain
|
||||
//
|
||||
// Created by Eryn Wells on 11/3/18.
|
||||
// Copyright © 2018 Eryn Wells. All rights reserved.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
import Metal
|
||||
import MetalKit
|
||||
|
||||
class Renderer: NSObject, MTKViewDelegate {
|
||||
|
||||
func mtkView(_ view: MTKView, drawableSizeWillChange size: CGSize) {
|
||||
print("Size of \(view.debugDescription) will change to \(size)")
|
||||
}
|
||||
|
||||
func draw(in view: MTKView) {
|
||||
// TODO.
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue