diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-02 20:02:14 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-02 20:02:14 +0100 |
commit | a84ca09e97d466643f022acfffcf4c6a77f42052 (patch) | |
tree | f375067b4250f468eb3b57d968efa3417f0f521d /src/crepe/api/Camera.cpp | |
parent | 135af8b0e0eaf8a5a5b7e1a42bfb20bb14ec97e5 (diff) |
making struct constructors
Diffstat (limited to 'src/crepe/api/Camera.cpp')
-rw-r--r-- | src/crepe/api/Camera.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/crepe/api/Camera.cpp b/src/crepe/api/Camera.cpp index 39d8ab0..27bcb35 100644 --- a/src/crepe/api/Camera.cpp +++ b/src/crepe/api/Camera.cpp @@ -2,19 +2,12 @@ #include "util/Log.h" #include "Camera.h" -#include "Color.h" #include "Component.h" using namespace crepe; -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), - offset(offset), - screen(screen), - viewport_size(viewport_size), - zoom(zoom) { +Camera::Camera(game_object_id_t id, const Data & ctx) : Component(id), data(ctx) { + dbg_trace(); } |