X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FRuntime.hpp;h=81c015c3668456360b1c84dc77587ba026848b1a;hb=29ee0558fdd951b25f41005ed721241b1f28aefa;hp=ee0b4a023737ef1f4d6fea40d7723ab621e10667;hpb=6f94235a5b7c140852703e60c8a74760b8b61d99;p=blank.git diff --git a/src/app/Runtime.hpp b/src/app/Runtime.hpp index ee0b4a0..81c015c 100644 --- a/src/app/Runtime.hpp +++ b/src/app/Runtime.hpp @@ -1,9 +1,11 @@ #ifndef BLANK_RUNTIME_HPP_ #define BLANK_RUNTIME_HPP_ -#include "Application.hpp" +#include "../ui/Interface.hpp" +#include "../world/World.hpp" #include +#include 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; };