diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-04 10:56:53 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-04 10:56:53 +0100 |
commit | a11824956b478e356fa684c9d88b980aa22cb19a (patch) | |
tree | d743b0415040d68db4f5cf35b2fc58bab41f0e46 /src/crepe/api/Camera.cpp | |
parent | 683ae28b81a66f18bbadbe7ae70eb8ddd952c293 (diff) |
implemented feedback, cameraValues need better name?
Diffstat (limited to 'src/crepe/api/Camera.cpp')
-rw-r--r-- | src/crepe/api/Camera.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/crepe/api/Camera.cpp b/src/crepe/api/Camera.cpp index ff41710..b042c35 100644 --- a/src/crepe/api/Camera.cpp +++ b/src/crepe/api/Camera.cpp @@ -6,7 +6,12 @@ using namespace crepe; -Camera::Camera(game_object_id_t id, const Data & ctx) : Component(id), data(ctx) { +Camera::Camera(game_object_id_t id, const ivec2 & screen, const vec2 & viewport_size, + const Data & ctx) + : Component(id), + screen(screen), + viewport_size(viewport_size), + data(ctx) { dbg_trace(); } |