reuse renderVM
This commit is contained in:
1 parent
81bfac20f9
commit
197d93ee7b
2 files changed
+8
-25
No files matched your search
@@ -1,16 +0,0 @@
|
||||
import Combine
|
||||
import Foundation
|
||||
|
||||
// iOS counterpart of the macOS RenderVM: it owns the view raylib draws into
|
||||
// and the timer that drives it. The actual rendering lives in raybriIOS.mm.
|
||||
final class RenderVM: ObservableObject {
|
||||
static private(set) weak var shared: RenderVM?
|
||||
|
||||
let glView = RenderGLView(frame: .zero)
|
||||
var startTime: CFTimeInterval = 0
|
||||
var timer: Timer?
|
||||
|
||||
init() {
|
||||
Self.shared = self
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
../renderVM.swift
|
||||
Reference in new issue
Block a user