aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
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
parentad0dcad1f11d698abf71bf69fb0927c26298d253 (diff)
working aspect ratio in world units. and add pillarboxing/letterboxing depending on ratio
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Camera.h4
-rw-r--r--src/crepe/api/Color.cpp2
2 files changed, 3 insertions, 3 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};
diff --git a/src/crepe/api/Color.cpp b/src/crepe/api/Color.cpp
index 29bd77a..dc7c15f 100644
--- a/src/crepe/api/Color.cpp
+++ b/src/crepe/api/Color.cpp
@@ -2,7 +2,7 @@
using namespace crepe;
-const Color Color::WHITE{0xff, 0xff, 0xff};
+const Color Color::WHITE{0xff, 0xff, 0xff, 0xff};
const Color Color::RED{0xff, 0x00, 0x00};
const Color Color::GREEN{0x00, 0xff, 0x00};
const Color Color::BLUE{0x00, 0x00, 0xff};