diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-07 01:16:19 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-07 01:16:19 +0100 |
commit | 7e7ddf53b54e52f2106c4adce2818df7877254f1 (patch) | |
tree | 4dd85dd843d218683459778f329cd9424e4d5708 /ui/mainWindow.cpp | |
parent | Default environment direction light shines down, not up (diff) | |
download | ilt-7e7ddf53b54e52f2106c4adce2818df7877254f1.tar.bz2 ilt-7e7ddf53b54e52f2106c4adce2818df7877254f1.tar.xz ilt-7e7ddf53b54e52f2106c4adce2818df7877254f1.zip |
More uniform/flexible window constructors
Diffstat (limited to 'ui/mainWindow.cpp')
-rw-r--r-- | ui/mainWindow.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/mainWindow.cpp b/ui/mainWindow.cpp index 73c0b5b..8d46d43 100644 --- a/ui/mainWindow.cpp +++ b/ui/mainWindow.cpp @@ -8,12 +8,7 @@ #include "backends/imgui_impl_sdl2.h" #pragma GCC diagnostic pop -MainWindow::MainWindow(size_t w, size_t h) : - MainWindow {w, h, "I Like Trains", SDL_WINDOW_RESIZABLE | SDL_WINDOW_OPENGL} -{ -} - -MainWindow::MainWindow(size_t w, size_t h, const std::string & title, Uint32 flags) : Window {w, h, title, flags} +MainWindow::MainWindow(size_t w, size_t h, const char * title, Uint32 flags) : Window {w, h, title, flags} { if (const auto version = gladLoadGL(reinterpret_cast<GLADloadfunc>(SDL_GL_GetProcAddress)); version < 30003) { throw std::runtime_error {std::format("Insufficient OpenGL version: {}", version)}; |