40 KFATAL(
"Could not create application!");
46 KFATAL(
"The application's function pointers must be assigned!");
52 KFATAL(
"Engine failed to create!.");
57 KFATAL(
"Could not initialize application!");
63 KINFO(
"Application did not shutdown gracefully.");
This file contains types to be consumed by the application library.
_Bool b8
8-bit boolean type
Definition: defines.h:58
This file contains structures and logic pertaining to the overall engine itself. The engine is respon...
KAPI b8 engine_create(struct application *game_inst)
Creates the engine, standing up the platform layer and all underlying subsystems.
KAPI b8 engine_run(struct application *game_inst)
Starts the main engine loop.
b8 initialize_application(application *app)
b8 create_application(application *out_app)
Externally-defined function to create a application, provided by the consumer of this library.
int main(void)
The main entry point of the application.
Definition: entry.h:36
This file contains structures and logic pertaining to the logging system.
#define KFATAL(message,...)
Logs a fatal-level message. Should be used to stop the application when hit.
Definition: logger.h:77
#define KINFO(message,...)
Logs an info-level message. Should be used for non-erronuous informational purposes.
Definition: logger.h:113
Represents the basic application state in a application. Called for creation by the application.
Definition: application_types.h:42
b8(* prepare_frame)(struct application *app_inst, struct frame_data *p_frame_data)
Function pointer to application's prepare_frame function.
Definition: application_types.h:75
void(* on_resize)(struct application *app_inst, u32 width, u32 height)
Function pointer to handle resizes, if applicable.
Definition: application_types.h:91
b8(* initialize)(struct application *app_inst)
Function pointer to application's initialize function.
Definition: application_types.h:59
b8(* render_frame)(struct application *app_inst, struct frame_data *p_frame_data)
Function pointer to application's render_frame function.
Definition: application_types.h:83
b8(* update)(struct application *app_inst, struct frame_data *p_frame_data)
Function pointer to application's update function.
Definition: application_types.h:67