Represents the basic application state in a application. Called for creation by the application.
More...
#include <application_types.h>
Represents the basic application state in a application. Called for creation by the application.
◆ app_config
The application configuration.
◆ boot
Function pointer to the application's boot sequence. This should fill out the application config with the application's specific requirements.
- Parameters
-
app_inst | A pointer to the application instance. |
- Returns
- True on success; otherwise false.
◆ engine_state
A block of memory to hold the engine state. Created and managed by the engine.
◆ game_library
◆ initialize
Function pointer to application's initialize function.
- Parameters
-
app_inst | A pointer to the application instance. |
- Returns
- True on success; otherwise false.
◆ lib_on_load
◆ lib_on_unload
◆ on_window_resize
Function pointer to handle resizes, if applicable.
- Parameters
-
app_inst | A pointer to the application instance. |
window | A constant pointer to the window that was resized. |
height | The height of the window in pixels. |
◆ prepare_frame
Function pointer to application's prepare_frame function.
- Parameters
-
app_inst | A pointer to the application instance. |
p_frame_data | A pointer to the current frame's data. |
- Returns
- True on success; otherwise false.
◆ render_frame
Function pointer to application's render_frame function.
- Parameters
-
app_inst | A pointer to the application instance. |
p_frame_data | A pointer to the current frame's data. |
- Returns
- True on success; otherwise false.
◆ shutdown
Shuts down the application, prompting release of resources.
- Parameters
-
app_inst | A pointer to the application instance. |
◆ stage
The application stage of execution.
◆ state
application-specific state. Created and managed by the application.
◆ update
Function pointer to application's update function.
- Parameters
-
app_inst | A pointer to the application instance. |
p_frame_data | A pointer to the current frame's data. |
- Returns
- True on success; otherwise false.
The documentation for this struct was generated from the following file: