aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-27 19:57:16 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-27 19:57:16 +0100
commitddb5bde6e5dd4d89faf419630086ece66690d6b5 (patch)
tree0b2cf988dbee4915fca002f16fbe88013d075ce2 /src/crepe/api/Camera.cpp
parent2b35e8f51a3536b62ea21dc82deec1e3b65568f6 (diff)
implemented feedback. biggest changes are teh camera_ref removed
Diffstat (limited to 'src/crepe/api/Camera.cpp')
-rw-r--r--src/crepe/api/Camera.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crepe/api/Camera.cpp b/src/crepe/api/Camera.cpp
index 5835bdd..4397ac7 100644
--- a/src/crepe/api/Camera.cpp
+++ b/src/crepe/api/Camera.cpp
@@ -6,9 +6,13 @@
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 ivec2 & viewport, const double & zoom)
: Component(id),
- bg_color(bg_color) {
+ bg_color(bg_color),
+ screen(screen),
+ viewport(viewport),
+ zoom(zoom) {
dbg_trace();
}