39void run(
const std::function<
void()>& frame);
47void init(
int width,
int height,
int scale = 1);
55void init_opengl(
int width,
int height,
int scale = 1);
void exit()
Exit the application. Sets exiting flag to true, which will cause the main loop to exit on the next u...
void print_info()
Prints information about the core module.
void init_opengl(int width, int height, int scale=1)
Initializes the core module for opengl.
void run(const std::function< void()> &frame)
Run a main loop until exit() is called.
void shutdown()
Cleanup resources used by the core module. Should be called on application exit.
void init(int width, int height, int scale=1)
Initializes the core module.
void update()
Updates core module functionality.
float get_delta_time()
Get the time between the last two calls to update(). Capped at a quarter of a second,...
bool is_exiting()
Return exiting status.