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