X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FRuntime.hpp;h=ac508b90677bf8fbe5d19e44c7111bc2c55456a5;hb=31a26883ebb253e9a73686b1cb0699b53884885e;hp=ee0b4a023737ef1f4d6fea40d7723ab621e10667;hpb=6f94235a5b7c140852703e60c8a74760b8b61d99;p=blank.git diff --git a/src/app/Runtime.hpp b/src/app/Runtime.hpp index ee0b4a0..ac508b9 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,18 @@ public: ERROR, }; + struct Config { + bool vsync = true; + bool doublebuf = true; + int multisampling = 1; + + std::string asset_path; + std::string save_path; + + Interface::Config interface = Interface::Config(); + World::Config world = World::Config(); + }; + Runtime() noexcept; void ReadArgs(int argc, const char *const *argv); @@ -36,7 +50,7 @@ private: Mode mode; std::size_t n; std::size_t t; - Application::Config config; + Config config; };