atelier.common.application

Application

Members

Aliases

ApplicationUpdate
alias ApplicationUpdate = void function(float)
Undocumented in source.

Functions

addApplicationUpdate
void addApplicationUpdate(ApplicationUpdate applicationUpdate)

Add a callback function called for each game loop

createApplication
void createApplication(Vec2i size, string title)

Application startup

destroyApplication
void destroyApplication()

Cleanup and kill the application

getCurrentFPS
float getCurrentFPS()

Actual framerate of the application.

getDeltatime
float getDeltatime()

Actual framerate divided by the nominal framerate 1 if the same, less if the application slow down, more if the application runs too quickly.

getNominalFPS
uint getNominalFPS()

Maximum framerate of the application. \ The deltatime is equal to 1 if the framerate is exactly that.

runApplication
void runApplication()

Main application loop

setNominalFPS
uint setNominalFPS(uint fps)

Maximum framerate of the application. \ The deltatime is equal to 1 if the framerate is exactly that.

Meta

License

Zlib

Authors

Enalye