aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-26 10:26:42 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-26 10:26:42 +0100
commit60a9879f268977d57b460eec830a3f8b5b24e1a2 (patch)
tree5e8e870864f85c3c6c66e721379b1e55b9446a03 /src/crepe/api/Camera.h
parent8cfb59093ce7b18c2b81cc8429a7568a3ba21a73 (diff)
added window default config settings
Diffstat (limited to 'src/crepe/api/Camera.h')
-rw-r--r--src/crepe/api/Camera.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/crepe/api/Camera.h b/src/crepe/api/Camera.h
index eea1b28..ec94c44 100644
--- a/src/crepe/api/Camera.h
+++ b/src/crepe/api/Camera.h
@@ -3,6 +3,7 @@
#include "Color.h"
#include "Component.h"
+#include "api/Config.h"
#include "types.h"
namespace crepe {
@@ -30,19 +31,17 @@ public:
Color bg_color;
//! pos The position of the camera in world units
- vec2 pos = {0, 0};
+ vec2 pos = Config::get_instance().win_set.pos;
//! screen the display size in pixels ( output resolution )
- //vec2 screen = {720, 480};
- vec2 screen = {1080, 720};
+ vec2 screen = Config::get_instance().win_set.def_size;
//! viewport is the area of the world visible through the camera (in world units)
- //vec2 viewport = {720, 480};
- vec2 viewport = {2000, 1000};
+ vec2 viewport = Config::get_instance().win_set.def_size;
//! scale scaling factor from world units to pixel coordinates
//! Zoom level of the camera view.
- double zoom = 1.0f;
+ double zoom = Config::get_instance().win_set.zoom;
public:
/**