summaryrefslogtreecommitdiff
path: root/ui/gameMainWindow.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 15:08:45 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 15:08:45 +0000
commitde61720146a1ce0640322dff992462bfbecafdc3 (patch)
tree85caf3c290415b1d7ed6b56341a4be290e69a06a /ui/gameMainWindow.cpp
parentSingle glContext shared between windows (diff)
downloadilt-de61720146a1ce0640322dff992462bfbecafdc3.tar.bz2
ilt-de61720146a1ce0640322dff992462bfbecafdc3.tar.xz
ilt-de61720146a1ce0640322dff992462bfbecafdc3.zip
Push uiShader into the window class
Diffstat (limited to 'ui/gameMainWindow.cpp')
-rw-r--r--ui/gameMainWindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp
index 7d5e19b..b41fc56 100644
--- a/ui/gameMainWindow.cpp
+++ b/ui/gameMainWindow.cpp
@@ -13,10 +13,7 @@
#include <memory>
GameMainWindow::GameMainWindow(size_t w, size_t h) :
- Window {static_cast<int>(w), static_cast<int>(h), "I Like Trains"}, uiShader {w, h}, camera {{-1250.0F, -1250.0F,
- 35.0F},
- 70.0F, rdiv(w, h),
- 0.1F, 10000.0F}
+ Window {w, h, "I Like Trains"}, camera {{-1250.0F, -1250.0F, 35.0F}, 70.0F, rdiv(w, h), 0.1F, 10000.0F}
{
inputStack.create<ManualCameraController>(glm::vec2 {-1150, -1150});