X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=e6226dc50454dff487aa8596460b68dcfdf0670a;hb=e74f1ad236429f05db90c0ace825277e2a3fbc05;hp=c8a6fb56720e6950fb0a7bc10097cdcbdf47e62e;hpb=bd6bd2c875f4b6baef913e5315aa9f7e7cd7da7a;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index c8a6fb5..e6226dc 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -14,7 +14,16 @@ namespace blank { class Application { public: - explicit Application(unsigned int seed); + struct Config { + bool vsync = true; + bool doublebuf = true; + int multisampling = 1; + + Interface::Config interface = Interface::Config(); + World::Config world = World::Config(); + }; + + explicit Application(const Config &); Application(const Application &) = delete; Application &operator =(const Application &) = delete; @@ -43,7 +52,8 @@ private: Window window; GLContext ctx; InitGLEW init_glew; - DirectionalLighting program; + BlockLighting chunk_prog; + DirectionalLighting entity_prog; Camera cam; World world;