Skip to content

Application

zeganstyl edited this page Sep 18, 2020 · 1 revision

Application is some kind of main object that must be created first. Each platform has own implementaion of IApp interface. There is singleton APP that you can use to get application functions through interface.

During the creation process, the application setups many singletons such as FS, GL, AL, JSON and etc.

Application has different functions. You can get time delta, get/set clipboard string, get/set current cursor image and etc.

After application created, you can call startLoop to start main loop, where you can rendering and updating.

For example LWJGL application creation may looks like:

val app = Lwjgl3App()

// create some objects...

GL.render {
	// render or update here...
}

app.startLoop()
Clone this wiki locally