From 5f42765139ae678ad3f210a4a08c4c462ccb8853 Mon Sep 17 00:00:00 2001 From: 0scar Date: Tue, 6 Feb 2024 23:58:28 +0100 Subject: General cleanup --- src/core/include/engine/engine.h | 58 ++++------------------------------------ 1 file changed, 5 insertions(+), 53 deletions(-) (limited to 'src/core/include/engine/engine.h') diff --git a/src/core/include/engine/engine.h b/src/core/include/engine/engine.h index 1715f8a..ec685f5 100644 --- a/src/core/include/engine/engine.h +++ b/src/core/include/engine/engine.h @@ -3,8 +3,9 @@ #include -// TODO: Cleanup the includes, ideally this header file should only include all -// "public-facing" headers. +/* TODO: Cleanup the includes, ideally this header file should only include all + * "public-facing" headers. + */ #include #include @@ -21,44 +22,7 @@ typedef struct { } RenderUnit; #include - -#define NUM_GLOBAL_BINDINGS 1 -typedef struct { - void* data; /* Contains textures and such */ - u64 data_len; - - Window window; - bool quit; - - u64 frame; - f32 fps_target; - - /* TODO: Move mouse data to input ctx */ - v2_i32 mouse_pos; - - v2_i32 mousedown; - v2_i32 mouseup; - - bool mouse_lclick; - bool mouse_rclick; - - i32 camera_x; - i32 camera_y; - - /* Text input/editing is currently not used/implemented */ - char* edit_text; - usize edit_pos; - - memory* mem; - - i_ctx** bindings; - usize bindings_sz; - usize bindings_len; - - struct RenderObject *testobject; - - binding_t bindings_global[NUM_GLOBAL_BINDINGS]; -} Platform; +#include /* Essential functions */ Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight, @@ -77,23 +41,11 @@ void render_set_zoom(f32 new_zoom); void render_adjust_zoom(f32 diff); void render_add_unit(RenderUnit* u); -f64 get_time(void); -//v2_i32 get_windowsize(void); -v2_i32* get_mousepos(void); /* Input handling */ void engine_input_ctx_push(i_ctx* ctx); void engine_input_ctx_pop(void); void engine_input_ctx_reset(void); +v2_i32* get_mousepos(void); -//#include - -//#ifdef ENGINE_INTERNALS -// -//#include -//#define GLFW_INCLUDE_NONE -//#include -// -// -//#endif #endif -- cgit v1.3