application skeleton

This commit is contained in:
2024-08-05 11:28:34 +10:00
parent 716144686e
commit dc10f5d0ce
3 changed files with 97 additions and 13 deletions

View File

@ -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())