summaryrefslogtreecommitdiffhomepage
path: root/floormat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-02 02:23:37 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-02 02:23:37 +0100
commit316f7bef0d81f86eb099e6a07b517bb24ed4a3dd (patch)
treeb596622c1edb6570b1d7383c66a9aa09921c7acd /floormat
parent8f6fc959ffbb3c612e9115c9b155f5379bee66d8 (diff)
app, main: allow Magnum to parse argv --magnum-foo opts
Diffstat (limited to 'floormat')
-rw-r--r--floormat/settings.hpp9
1 files changed, 3 insertions, 6 deletions
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<int> 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,