aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 07:53:24 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 07:53:24 +0100
commit14cbc9061ecd7ab1c9e58e5f9ba75a5216e1de2b (patch)
treecd395d82abf24ef2dca4376b5063ea39676177e3 /src/crepe/api/Camera.cpp
parentddb5bde6e5dd4d89faf419630086ece66690d6b5 (diff)
feedback implemented
Diffstat (limited to 'src/crepe/api/Camera.cpp')
-rw-r--r--src/crepe/api/Camera.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/api/Camera.cpp b/src/crepe/api/Camera.cpp
index 4397ac7..99a0831 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"
@@ -7,9 +8,10 @@
using namespace crepe;
Camera::Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen,
- const ivec2 & viewport, const double & zoom)
+ const ivec2 & viewport, const double & zoom, const vec2& offset)
: Component(id),
bg_color(bg_color),
+ offset(offset),
screen(screen),
viewport(viewport),
zoom(zoom) {