[OpenGLRenderer] Rough outline of an NSOpenGLView subclass
Handles setting up the displayLink and starting it when added/removed from a superview. It is up to subclasses (or delegates -- I haven't decided which yet) to add the appropriate behavior.
This commit is contained in:
parent
a1270d4ea5
commit
93da94e384
7 changed files with 619 additions and 0 deletions
36
OpenGLRenderer/OpenGLRendererTests/OpenGLRendererTests.swift
Normal file
36
OpenGLRenderer/OpenGLRendererTests/OpenGLRendererTests.swift
Normal file
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// OpenGLRendererTests.swift
|
||||
// OpenGLRendererTests
|
||||
//
|
||||
// Created by Eryn Wells on 11/12/15.
|
||||
// Copyright © 2015 Eryn Wells. All rights reserved.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
@testable import OpenGLRenderer
|
||||
|
||||
class OpenGLRendererTests: XCTestCase {
|
||||
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
func testExample() {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
}
|
||||
|
||||
func testPerformanceExample() {
|
||||
// This is an example of a performance test case.
|
||||
self.measureBlock {
|
||||
// Put the code you want to measure the time of here.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue