From d11abae4b6560b6574a84f41d7a34156204cdc5b Mon Sep 17 00:00:00 2001 From: 0scar Date: Sun, 18 Feb 2024 11:31:41 +0100 Subject: Cleanup --- src/core/include/engine/core/platform.h | 4 ---- src/core/include/engine/engine.h | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/core/include/engine') diff --git a/src/core/include/engine/core/platform.h b/src/core/include/engine/core/platform.h index 9fe22b3..f8513ac 100644 --- a/src/core/include/engine/core/platform.h +++ b/src/core/include/engine/core/platform.h @@ -41,10 +41,6 @@ typedef struct Platform { /* Global resources that live from engine_init to engine_free */ Resources* resources; - /* Text input/editing is currently not used/implemented */ - char* edit_text; - usize edit_pos; - memory* mem; /* The ctrl is probably the only sensible thing in this struct. */ diff --git a/src/core/include/engine/engine.h b/src/core/include/engine/engine.h index 9036520..b4749f7 100644 --- a/src/core/include/engine/engine.h +++ b/src/core/include/engine/engine.h @@ -27,6 +27,8 @@ typedef struct { #include #include +#include + /* Essential functions */ Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight, const f32 render_scale, const u32 flags, @@ -47,7 +49,7 @@ void render_add_unit(RenderUnit* u); 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); +void get_mousepos(double *x, double *y); /* move this */ void delay(uint32_t ms); -- cgit v1.3