aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Camera.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-22 13:54:13 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-22 13:54:13 +0100
commit385f19a8c896ec126c569f1e5337d6d370d20517 (patch)
treebdadcca9c504176ada3ba4ef8e9754df8042e52e /src/crepe/api/Camera.h
parentad0dcad1f11d698abf71bf69fb0927c26298d253 (diff)
working aspect ratio in world units. and add pillarboxing/letterboxing depending on ratio
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 d7292ef..c42ed0d 100644
--- a/src/crepe/api/Camera.h
+++ b/src/crepe/api/Camera.h
@@ -32,10 +32,10 @@ public:
Vector2 pos = {0, 0};
//! screen the display size in pixels ( output resolution )
- Vector2 screen = {640, 480};
+ Vector2 screen = {1080, 720};
//! viewport is the area of the world visible through the camera (in world units)
- Vector2 viewport = {500, 500};
+ Vector2 viewport = {2000, 1000};
//! scale scaling factor from world units to pixel coordinates
Vector2 scale = {0, 0};