Kohi Game Engine
|
Represents the basic application state in a application. Called for creation by the application. More...
#include <application_types.h>
Data Fields | |
application_config | app_config |
The application configuration. More... | |
b8(* | boot )(struct application *app_inst) |
Function pointer to the application's boot sequence. This should fill out the application config with the application's specific requirements. More... | |
b8(* | initialize )(struct application *app_inst) |
Function pointer to application's initialize function. More... | |
b8(* | update )(struct application *app_inst, struct frame_data *p_frame_data) |
Function pointer to application's update function. More... | |
b8(* | prepare_frame )(struct application *app_inst, struct frame_data *p_frame_data) |
Function pointer to application's prepare_frame function. More... | |
b8(* | render_frame )(struct application *app_inst, struct frame_data *p_frame_data) |
Function pointer to application's render_frame function. More... | |
void(* | on_resize )(struct application *app_inst, u32 width, u32 height) |
Function pointer to handle resizes, if applicable. More... | |
void(* | shutdown )(struct application *app_inst) |
Shuts down the application, prompting release of resources. More... | |
void(* | lib_on_unload )(struct application *game_inst) |
void(* | lib_on_load )(struct application *game_inst) |
application_stage | stage |
The application stage of execution. More... | |
void * | state |
application-specific state. Created and managed by the application. More... | |
void * | engine_state |
A block of memory to hold the engine state. Created and managed by the engine. More... | |
dynamic_library | renderer_library |
renderer_plugin | render_plugin |
dynamic_library | audio_library |
audio_plugin | audio_plugin |
dynamic_library | game_library |
Represents the basic application state in a application. Called for creation by the application.
application_config app_config |
The application configuration.
dynamic_library audio_library |
b8(* boot) (struct application *app_inst) |
Function pointer to the application's boot sequence. This should fill out the application config with the application's specific requirements.
app_inst | A pointer to the application instance. |
void* engine_state |
A block of memory to hold the engine state. Created and managed by the engine.
dynamic_library game_library |
b8(* initialize) (struct application *app_inst) |
Function pointer to application's initialize function.
app_inst | A pointer to the application instance. |
void(* lib_on_load) (struct application *game_inst) |
void(* lib_on_unload) (struct application *game_inst) |
void(* on_resize) (struct application *app_inst, u32 width, u32 height) |
Function pointer to handle resizes, if applicable.
app_inst | A pointer to the application instance. |
width | The width of the window in pixels. |
height | The height of the window in pixels. |
b8(* prepare_frame) (struct application *app_inst, struct frame_data *p_frame_data) |
Function pointer to application's prepare_frame function.
app_inst | A pointer to the application instance. |
p_frame_data | A pointer to the current frame's data. |
b8(* render_frame) (struct application *app_inst, struct frame_data *p_frame_data) |
Function pointer to application's render_frame function.
app_inst | A pointer to the application instance. |
p_frame_data | A pointer to the current frame's data. |
renderer_plugin render_plugin |
dynamic_library renderer_library |
void(* shutdown) (struct application *app_inst) |
Shuts down the application, prompting release of resources.
app_inst | A pointer to the application instance. |
application_stage stage |
The application stage of execution.
void* state |
application-specific state. Created and managed by the application.
b8(* update) (struct application *app_inst, struct frame_data *p_frame_data) |
Function pointer to application's update function.
app_inst | A pointer to the application instance. |
p_frame_data | A pointer to the current frame's data. |