app reference
The app package: app.
app
constant kStepsPerFrameLimit
wolang
offer const kStepsPerFrameLimit: int = 8struct Config
wolang
offer struct Configfield title
wolang
var title: textfield width
wolang
var width: intfield height
wolang
var height: intfield resizable
wolang
var resizable: boolfield vsync
wolang
var vsync: boolfield gl
wolang
var gl: boolfield step
wolang
var step: floatfield max_frame
wolang
var max_frame: floatfield sample_rate
wolang
var sample_rate: intfield sound
wolang
var sound: boolfield hidden
wolang
var hidden: boolfunction ConfigNew
wolang
offer fun ConfigNew(title: text, width: int, height: int) -> Configfunction ConfigParse
wolang
offer fun ConfigParse(input: text, base: Config) -> Config uses unsafefunction ConfigText
wolang
offer fun ConfigText(config: Config) -> textfunction ConfigDirectory
wolang
offer fun ConfigDirectory(name: text) -> text uses io, unsafefunction ConfigPath
wolang
offer fun ConfigPath(name: text) -> text uses io, unsafeclass Clock
wolang
offer class Clockfield step
wolang
var step: floatfield max_frame
wolang
var max_frame: floatfield accumulator
wolang
var accumulator: float = 0.0field last
wolang
var last: float = 0.0field frames
wolang
var frames: int = 0field steps
wolang
var steps: int = 0method Advance
wolang
fun Advance(frame: float) -> intmethod Delta
wolang
fun Delta() -> floatmethod Alpha
wolang
fun Alpha() -> floatfunction ClockNew
wolang
offer fun ClockNew(step: float, max_frame: float) -> Clockability Game
wolang
offer ability Gamemethod Update
wolang
fun Update(dt: float) uses unsafemethod Draw
wolang
fun Draw(alpha: float) uses unsafemethod OnEvent
wolang
fun OnEvent(event: Event) -> bool uses unsafeclass App
wolang
offer class Appfield config
wolang
var config: Configfield window
wolang
var window: Windowfield output
wolang
var output: Outputfield device
wolang
var device: Devicefield clock
wolang
var clock: Clockfield running
wolang
var running: bool = truemethod HasWindow
wolang
fun HasWindow() -> boolmethod HasSound
wolang
fun HasSound() -> boolmethod Quit
wolang
fun Quit()method Frame
wolang
fun Frame(game: Game, frame: float) uses unsafemethod RunFrames
wolang
fun RunFrames(game: Game, frames: int, frame: float) -> int uses unsafemethod Run
wolang
fun Run(game: Game) -> int uses unsafemethod Close
wolang
fun Close() uses unsafefunction AppNew
wolang
offer fun AppNew(config: Config) -> App!Malformed uses unsafe