diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-28 13:01:07 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-28 13:01:14 +0100 |
commit | 63bce3dd21c82e2b4e45c07934d5a26684cdaa93 (patch) | |
tree | a46da0cb575fa21add7b07f2784c7889e4bc2771 /src/crepe/api/Camera.cpp | |
parent | 2a2a3391ff0b449602825c3182af33c2ff52abc0 (diff) | |
parent | 85aa57e33d493502b05984ce44db6c68f627a6f2 (diff) |
merge `master`
Diffstat (limited to 'src/crepe/api/Camera.cpp')
-rw-r--r-- | src/crepe/api/Camera.cpp | 10 |
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(); } |