diff options
Diffstat (limited to 'src/core/include')
| -rw-r--r-- | src/core/include/engine/core/platform.h | 8 | ||||
| -rw-r--r-- | src/core/include/engine/engine.h | 8 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/core/include/engine/core/platform.h b/src/core/include/engine/core/platform.h index 675766b..327bf02 100644 --- a/src/core/include/engine/core/platform.h +++ b/src/core/include/engine/core/platform.h @@ -19,7 +19,7 @@ extern "C" { * variable (yeah, im sorry). Due to this design flaw the engine as a whole is * not quite thread safe. */ -typedef struct Platform { +typedef struct Instance { Window* window; bool quit; @@ -27,7 +27,9 @@ typedef struct Platform { u64 frame; u16 fps_target; - /* TODO: Move mouse data to input ctx */ + /* TODO: Move mouse data to input ctx/bindings */ + /* TODO: Move input ctx/bindings to window */ + /* TODO: Move cam to window->renderer */ v2_i32 mouse_pos; v2_i32 mousedown; @@ -49,7 +51,7 @@ typedef struct Platform { usize bindings_len; binding_t bindings_global[NUM_GLOBAL_BINDINGS]; -} Platform; +} Instance; #ifdef __cplusplus } diff --git a/src/core/include/engine/engine.h b/src/core/include/engine/engine.h index 0b1a540..d28c024 100644 --- a/src/core/include/engine/engine.h +++ b/src/core/include/engine/engine.h @@ -30,16 +30,16 @@ typedef struct { #include <cglm/cglm.h> /* Essential functions */ -Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight, +Instance* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight, const f32 render_scale, const u32 flags, const usize initial_memory); -i32 engine_run(Platform* p, StateType initial_state, void* state_arg); +i32 engine_run(Instance* p, StateType initial_state, void* state_arg); -void engine_stop(Platform* p); +void engine_stop(Instance* p); /* Utility functions */ -void engine_fps_max(Platform* p, u16 cap); +void engine_fps_max(Instance* p, u16 cap); void render_set_zoom(f32 new_zoom); void render_adjust_zoom(f32 diff); |
