From 14cbc9061ecd7ab1c9e58e5f9ba75a5216e1de2b Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Thu, 28 Nov 2024 07:53:24 +0100 Subject: feedback implemented --- src/crepe/api/Camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crepe/api/Camera.h') 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 -- cgit v1.2.3