diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2024-02-18 10:31:41 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2024-02-18 10:31:41 +0000 |
| commit | d11abae4b6560b6574a84f41d7a34156204cdc5b (patch) | |
| tree | 4e9c03df6e4712c8af4ab1b52c0b2946e250f615 /src/core/include/engine | |
| parent | 560f3d25771b6f3dfec7cb33a65eff922c03339a (diff) | |
Cleanup
Diffstat (limited to 'src/core/include/engine')
| -rw-r--r-- | src/core/include/engine/core/platform.h | 4 | ||||
| -rw-r--r-- | src/core/include/engine/engine.h | 4 |
2 files changed, 3 insertions, 5 deletions
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 <engine/rendering/window.h> #include <engine/core/platform.h> +#include <cglm/cglm.h> + /* 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); |
