summaryrefslogtreecommitdiff
path: root/src/core/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/include')
-rw-r--r--src/core/include/engine/core/platform.h9
-rw-r--r--src/core/include/engine/engine.h3
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,