diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-17 10:59:44 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-17 11:01:18 +0100 |
commit | 8b67a492f459a47a1d2eeebc852c9741a77708d5 (patch) | |
tree | 1f98c71721e3841da1bbfb49afa211f8c92af472 /main/setup.cpp | |
parent | 7e8875bac57fdf2bf5e773a890ad868b5ff22727 (diff) |
a
Diffstat (limited to 'main/setup.cpp')
-rw-r--r-- | main/setup.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/main/setup.cpp b/main/setup.cpp index 6f794719..797fbfb0 100644 --- a/main/setup.cpp +++ b/main/setup.cpp @@ -1,30 +1,10 @@ #include "main-impl.hpp" -#include "compat/fpu.hpp" #include <algorithm> #include <Corrade/Containers/StringView.h> #include <Corrade/Containers/StringIterable.h> namespace floormat { -main_impl::main_impl(floormat_app& app, fm_settings&& se, int& argc, char** argv) noexcept : - Platform::Sdl2Application{Arguments{argc, argv}, - make_conf(se), make_gl_conf(se)}, - s{std::move(se)}, app{app}, _shader{_tuc} -{ - if (s.vsync) - { - (void)setSwapInterval(1); - if (const auto list = GL::Context::current().extensionStrings(); - std::find(list.cbegin(), list.cend(), "EXT_swap_control_tear") != list.cend()) - (void)setSwapInterval(-1); - } - else - (void)setSwapInterval(0); - set_fp_mask(); - _clickable_scenery.reserve(128); - timeline.start(); -} - auto main_impl::make_window_flags(const fm_settings& s) -> Configuration::WindowFlags { using flag = Configuration::WindowFlag; @@ -108,11 +88,4 @@ class world& main_impl::reset_world() noexcept return reset_world(floormat::world{}); } -class world& main_impl::reset_world(class world&& w) noexcept -{ - _clickable_scenery.clear(); - _world = std::move(w); - return _world; -} - } // namespace floormat |