aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.h
diff options
context:
space:
mode:
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