mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
use main.m and SDL_main functionality
This commit is contained in:
17
Sources/Voxelotl/Program.swift
Normal file
17
Sources/Voxelotl/Program.swift
Normal file
@ -0,0 +1,17 @@
|
||||
import Foundation
|
||||
|
||||
@objc public class Program: NSObject {
|
||||
@objc public static func run() -> Int32 {
|
||||
Thread.current.qualityOfService = .userInteractive
|
||||
|
||||
let app = Application(
|
||||
delegate: Game(),
|
||||
configuration: ApplicationConfiguration(
|
||||
frame: Size(1280, 720),
|
||||
title: "Voxelotl Demo",
|
||||
flags: [ .resizable, .highDPI ],
|
||||
vsyncMode: .on(interval: 1)))
|
||||
|
||||
return app.run()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user