diff options
| author | onelin <oscar@nelin.dk> | 2025-04-13 08:33:52 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-04-13 08:41:40 +0000 |
| commit | 5cd270925af707599a3f842e1e969d5074ae80a8 (patch) | |
| tree | f5188ad94131824710c2452cc32fee0bc156af2f /src/core/include | |
| parent | 0dfd07a115ab626c97080dbe87e3c4904f091041 (diff) | |
Remove custom vector implementation
cglm go brr
Diffstat (limited to 'src/core/include')
| -rw-r--r-- | src/core/include/engine/core/platform.h | 9 | ||||
| -rw-r--r-- | src/core/include/engine/engine.h | 3 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/include/engine/core/platform.h b/src/core/include/engine/core/platform.h index 327bf02..7faf901 100644 --- a/src/core/include/engine/core/platform.h +++ b/src/core/include/engine/core/platform.h @@ -5,12 +5,13 @@ extern "C" { #endif +#include <cglm/ivec2.h> + #include <engine/core/types.h> #include <engine/core/memory.h> #include <engine/ctrl/input.h> #include <engine/rendering/window.h> #include <engine/resources.h> -#include <engine/utils/vector.h> #define NUM_GLOBAL_BINDINGS 1 @@ -30,10 +31,10 @@ typedef struct Instance { /* 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; + ivec2 mouse_pos; - v2_i32 mousedown; - v2_i32 mouseup; + ivec2 mousedown; + ivec2 mouseup; bool mouse_lclick; bool mouse_rclick; diff --git a/src/core/include/engine/engine.h b/src/core/include/engine/engine.h index d0a61f2..aa4eff6 100644 --- a/src/core/include/engine/engine.h +++ b/src/core/include/engine/engine.h @@ -17,7 +17,6 @@ extern "C" { #include <engine/core/state.h> #include <engine/ctrl/input.h> #include <engine/utils/stack.h> -#include <engine/utils/vector.h> typedef struct { u32 texture_id; @@ -27,7 +26,7 @@ typedef struct { #include <engine/rendering/window.h> #include <engine/core/platform.h> -#include <cglm/cglm.h> +#include <cglm/ivec2.h> /* Essential functions */ Instance* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight, |
