Constructor

new()

Methods

Inherited Variables

Defined by Application

read onlyconfig:Config

@:value(new Event<Int>())onUpdate:Event_Int_Void<Int‑>Void> = new Event<Int>()

Update events are dispatched each frame (usually just before rendering)

read onlywindow:Window

read onlywindows:Array<Window>

Defined by Module

@:value(new Event<Int>())onExit:Event_Int_Void<Int‑>Void> = new Event<Int>()

Exit events are dispatched when the application is exiting

Inherited Methods

Defined by Application

addModule(module:IModule):Void

Adds a new module to the Application

Parameters:

module

A module to add

addRenderer(renderer:Renderer):Void

Adds a new Renderer to the Application. By default, this is called automatically by create()

Parameters:

renderer

A Renderer object to add

createWindow(window:Window):Void

Adds a new Window to the Application. By default, this is called automatically by create()

Parameters:

window

A Window object to add

exec():Int

Execute the Application. On native platforms, this method blocks until the application is finished running. On other platforms, it will return immediately

Returns:

An exit code, 0 if there was no error

removeModule(module:IModule):Void

Removes a module from the Application

Parameters:

module

A module to remove

removeRenderer(renderer:Renderer):Void

Removes a Renderer from the Application

Parameters:

renderer

A Renderer object to remove