aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-27 10:35:06 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-27 10:35:06 +0100
commit368aeba5bcfafe445b3af5748f3798aa75003bf2 (patch)
tree7c15a1354b349e6d9207340fcecbc86038513f5d /src/crepe/api/Camera.h
parentc5d1b46ba804eaabdb4fc2f4f4295292032def65 (diff)
implemented feedback on PR40 and made camera sizes ivec2
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 ec94c44..151e5d9 100644
--- a/src/crepe/api/Camera.h
+++ b/src/crepe/api/Camera.h
@@ -2,8 +2,6 @@
#include "Color.h"
#include "Component.h"
-
-#include "api/Config.h"
#include "types.h"
namespace crepe {
@@ -31,17 +29,18 @@ public:
Color bg_color;
//! pos The position of the camera in world units
- vec2 pos = Config::get_instance().win_set.pos;
+ vec2 pos = {0,0};
//! screen the display size in pixels ( output resolution )
- vec2 screen = Config::get_instance().win_set.def_size;
+ ivec2 screen = {1080,720};
//! viewport is the area of the world visible through the camera (in world units)
- vec2 viewport = Config::get_instance().win_set.def_size;
+ //vec2 viewport = {1000, 2000};
+ ivec2 viewport = {500, 1000};
//! scale scaling factor from world units to pixel coordinates
//! Zoom level of the camera view.
- double zoom = Config::get_instance().win_set.zoom;
+ double zoom = 1.0f;
public:
/**