diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-18 21:41:15 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-18 21:41:15 +0000 |
commit | 0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a (patch) | |
tree | 57f1f7b55b76402196e46638d8a223397170c713 /ui/gameMainWindow.cpp | |
parent | Rename rdiv to ratio and add a vec2 override (diff) | |
download | ilt-0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a.tar.bz2 ilt-0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a.tar.xz ilt-0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a.zip |
Save size of output in SceneRender and set viewport accordingly
Diffstat (limited to 'ui/gameMainWindow.cpp')
-rw-r--r-- | ui/gameMainWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp index e49f4a9..c31265a 100644 --- a/ui/gameMainWindow.cpp +++ b/ui/gameMainWindow.cpp @@ -29,7 +29,7 @@ public: }; GameMainWindow::GameMainWindow(size_t w, size_t h) : - Window {w, h, "I Like Trains", SDL_WINDOW_OPENGL}, SceneRenderer {size, 0} + Window {w, h, "I Like Trains", SDL_WINDOW_OPENGL}, SceneRenderer {Window::size, 0} { uiComponents.create<ManualCameraController>(glm::vec2 {-1150, -1150}); auto gms = uiComponents.create<GameMainSelector>(&camera, glm::vec2 {w, h}); |