aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-03 11:33:48 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-03 11:33:48 +0100
commitd1a31a3cafc9aadb047509f5cd8b2befa212add8 (patch)
treeaf43d7e3bd55818565fb253064d3f35a44786a68 /src/crepe/api/Camera.cpp
parentc396ae5f78222a7c3547ae5e2ce719ae143acb66 (diff)
parentcc821016c8ddce45a1e3f192415f58be237b8a1e (diff)
Merge branch 'jaro/collision-system' into wouter/exampleGame
Diffstat (limited to 'src/crepe/api/Camera.cpp')
-rw-r--r--src/crepe/api/Camera.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/crepe/api/Camera.cpp b/src/crepe/api/Camera.cpp
index 5835bdd..39d8ab0 100644
--- a/src/crepe/api/Camera.cpp
+++ b/src/crepe/api/Camera.cpp
@@ -1,3 +1,4 @@
+#include "types.h"
#include "util/Log.h"
#include "Camera.h"
@@ -6,9 +7,14 @@
using namespace crepe;
-Camera::Camera(game_object_id_t id, const Color & bg_color)
+Camera::Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen,
+ const vec2 & viewport_size, const double & zoom, const vec2 & offset)
: Component(id),
- bg_color(bg_color) {
+ bg_color(bg_color),
+ offset(offset),
+ screen(screen),
+ viewport_size(viewport_size),
+ zoom(zoom) {
dbg_trace();
}