aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.cpp
diff options
context:
space:
mode:
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) {