aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 07:53:24 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 07:53:24 +0100
commit14cbc9061ecd7ab1c9e58e5f9ba75a5216e1de2b (patch)
treecd395d82abf24ef2dca4376b5063ea39676177e3 /src/crepe/api/Camera.h
parentddb5bde6e5dd4d89faf419630086ece66690d6b5 (diff)
feedback implemented
Diffstat (limited to 'src/crepe/api/Camera.h')
-rw-r--r--src/crepe/api/Camera.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Camera.h b/src/crepe/api/Camera.h
index 2ba37fc..8908caa 100644
--- a/src/crepe/api/Camera.h
+++ b/src/crepe/api/Camera.h
@@ -21,7 +21,7 @@ public:
* \param id Unique identifier for the camera component.
* \param bg_color Background color for the camera view.
*/
- Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen, const ivec2 & viewport, const double & zoom);
+ Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen, const ivec2 & viewport, const double & zoom, const vec2 & offset = {0,0});
~Camera(); // dbg_trace only
public:
@@ -29,7 +29,7 @@ public:
const Color bg_color;
//! offset postion from the game object transform component
- vec2 offset = {0, 0};
+ vec2 offset;
//! pos the postion of the camera in world space this will be filled with
//pos = transform + offset