X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FRuntime.hpp;h=036b8dbfc635ef9078454036113626b2b79266b0;hb=afd253b2dd10fdf2d4655d3d4a5766e6aa8c1a2c;hp=ee0b4a023737ef1f4d6fea40d7723ab621e10667;hpb=aefc5482b27e3d259b6c9f3f1e4cdd9ef2e6a8d2;p=blank.git diff --git a/src/app/Runtime.hpp b/src/app/Runtime.hpp index ee0b4a0..036b8db 100644 --- a/src/app/Runtime.hpp +++ b/src/app/Runtime.hpp @@ -1,7 +1,8 @@ #ifndef BLANK_RUNTIME_HPP_ #define BLANK_RUNTIME_HPP_ -#include "Application.hpp" +#include "../ui/Interface.hpp" +#include "../world/World.hpp" #include @@ -25,6 +26,15 @@ public: ERROR, }; + struct Config { + bool vsync = true; + bool doublebuf = true; + int multisampling = 1; + + Interface::Config interface = Interface::Config(); + World::Config world = World::Config(); + }; + Runtime() noexcept; void ReadArgs(int argc, const char *const *argv); @@ -36,7 +46,7 @@ private: Mode mode; std::size_t n; std::size_t t; - Application::Config config; + Config config; };