mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
application skeleton
This commit is contained in:
@ -1,13 +1,4 @@
|
||||
import Foundation
|
||||
import SDL3
|
||||
import Darwin
|
||||
|
||||
guard SDL_Init(SDL_INIT_VIDEO) >= 0 else {
|
||||
print("SDL init failed.")
|
||||
exit(1)
|
||||
}
|
||||
|
||||
defer {
|
||||
SDL_Quit()
|
||||
}
|
||||
|
||||
print("SDL init success.")
|
||||
let app = Application()
|
||||
exit(app.run())
|
||||
|
Reference in New Issue
Block a user