From 316f7bef0d81f86eb099e6a07b517bb24ed4a3dd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 2 Dec 2022 02:23:37 +0100 Subject: app, main: allow Magnum to parse argv --magnum-foo opts --- floormat/settings.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'floormat/settings.hpp') diff --git a/floormat/settings.hpp b/floormat/settings.hpp index aed65dea..65ae5a42 100644 --- a/floormat/settings.hpp +++ b/floormat/settings.hpp @@ -7,8 +7,6 @@ namespace floormat { enum class fm_gpu_debug : char { no_error = 1, off, on, robust, }; -enum class fm_tristate : char { maybe = -1, on, off }; -enum class fm_log_level : unsigned char { quiet, normal, verbose, }; struct fm_settings { @@ -17,12 +15,11 @@ struct fm_settings fm_DECLARE_DEPRECATED_COPY_ASSIGNMENT(fm_settings); fm_DECLARE_DEFAULT_MOVE_ASSIGNMENT_(fm_settings); + String title = "Test"_s; + const char* const* argv = nullptr; int argc = 0; Magnum::Math::Vector2 resolution{1024, 720}; - Corrade::Containers::String title{"Test"}; - Corrade::Containers::String disabled_extensions; // TODO - bool vsync = true; fm_gpu_debug gpu_debug = fm_gpu_debug::on; - fm_log_level log_level = fm_log_level::normal; + bool vsync = true; bool resizable : 1 = true, fullscreen : 1 = false, fullscreen_desktop : 1 = false, -- cgit v1.2.3