summaryrefslogtreecommitdiff
path: root/src/core/include
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-02-12 16:26:31 +0000
committer0scar <qgt268@alumni.ku.dk>2024-02-12 21:42:56 +0000
commitf21c8ca19954b45050bb86c381cc7c439383342c (patch)
treebbe5b751605072ef2cca05ca44c3d60f0ed5a40e /src/core/include
parenteba4a1312c50bbebca2c50f6566d16b41ea7fb9d (diff)
Add camera
Diffstat (limited to 'src/core/include')
-rw-r--r--src/core/include/engine/core/platform.h3
-rw-r--r--src/core/include/engine/engine.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/core/include/engine/core/platform.h b/src/core/include/engine/core/platform.h
index 9dc9a8b..76137c9 100644
--- a/src/core/include/engine/core/platform.h
+++ b/src/core/include/engine/core/platform.h
@@ -32,8 +32,7 @@ typedef struct Platform {
bool mouse_lclick;
bool mouse_rclick;
- i32 camera_x;
- i32 camera_y;
+ Camera *cam;
/* Global resources that live from engine_init to engine_free */
Resources* resources;
diff --git a/src/core/include/engine/engine.h b/src/core/include/engine/engine.h
index d5b0922..75f6313 100644
--- a/src/core/include/engine/engine.h
+++ b/src/core/include/engine/engine.h
@@ -39,7 +39,6 @@ void render_set_zoom(f32 new_zoom);
void render_adjust_zoom(f32 diff);
void render_add_unit(RenderUnit* u);
-
/* Input handling */
void engine_input_ctx_push(i_ctx* ctx);
void engine_input_ctx_pop(void);