Create a Renderer and copy over the Math library

This commit is contained in:
Eryn Wells 2018-11-03 10:16:22 -04:00
parent 75f23a94a4
commit bb9507e3ec
4 changed files with 156 additions and 0 deletions

23
Terrain/Renderer.swift Normal file
View 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.
}
}