voxelotl-engine/Sources/Voxelotl/Program.swift
2024-09-03 05:01:18 -04:00

18 lines
419 B
Swift

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