try my way
This commit is contained in:
1 parent
6fecc1e95e
commit
fa1cd053c8
16 files changed
+521
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user