initial modelbatch

This commit is contained in:
2024-09-06 06:37:19 +10:00
parent 0289992e4b
commit 57b97148a4
6 changed files with 100 additions and 47 deletions

View File

@ -4,7 +4,7 @@ import QuartzCore.CAMetalLayer
public class Application {
private let cfg: ApplicationConfiguration
private let del: GameDelegate
private var del: GameDelegate!
private var window: OpaquePointer? = nil
private var view: SDL_MetalView? = nil
@ -71,7 +71,8 @@ public class Application {
}
private func deinitialize() {
renderer = nil
self.del = nil
self.renderer = nil
SDL_Metal_DestroyView(view)
SDL_DestroyWindow(window)
SDL_Quit()