aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.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/facade/SDLContext.h
parent8cfb59093ce7b18c2b81cc8429a7568a3ba21a73 (diff)
added window default config settings
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r--src/crepe/facade/SDLContext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h
index c9f3299..f72eecb 100644
--- a/src/crepe/facade/SDLContext.h
+++ b/src/crepe/facade/SDLContext.h
@@ -13,6 +13,7 @@
#include "../api/Transform.h"
#include "api/Camera.h"
+#include "api/Config.h"
#include "types.h"
namespace crepe {
@@ -179,8 +180,7 @@ private:
std::unique_ptr<SDL_Renderer, std::function<void(SDL_Renderer *)>> game_renderer;
//! viewport for the camera window
- //todo change this so that it becomes a vec2 for only width and height
- SDL_Rect viewport = {0, 0, 1200, 1200};
+ vec2 window = Config::get_instance().win_set.def_size;
};
} // namespace crepe