]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Runtime.hpp
enhanced application state control
[blank.git] / src / app / Runtime.hpp
index ee0b4a023737ef1f4d6fea40d7723ab621e10667..81c015c3668456360b1c84dc77587ba026848b1a 100644 (file)
@@ -1,9 +1,11 @@
 #ifndef BLANK_RUNTIME_HPP_
 #define BLANK_RUNTIME_HPP_
 
-#include "Application.hpp"
+#include "../ui/Interface.hpp"
+#include "../world/World.hpp"
 
 #include <cstddef>
+#include <string>
 
 
 namespace blank {
@@ -25,6 +27,19 @@ public:
                ERROR,
        };
 
+       struct Config {
+               bool vsync = true;
+               bool doublebuf = true;
+               int multisampling = 1;
+
+               std::string asset_path;
+               std::string save_path;
+               std::string world_name = "default";
+
+               Interface::Config interface = Interface::Config();
+               World::Config world = World::Config();
+       };
+
        Runtime() noexcept;
 
        void ReadArgs(int argc, const char *const *argv);
@@ -36,7 +51,7 @@ private:
        Mode mode;
        std::size_t n;
        std::size_t t;
-       Application::Config config;
+       Config config;
 
 };