X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=e6226dc50454dff487aa8596460b68dcfdf0670a;hb=e53a0e2e711a7d8bd9b0ddacd1360aa14370643f;hp=413b6f19869430f22b665d690d4d8a67cd0ff50d;hpb=46509f82dcea114b004c53a7f3a9608f2518077f;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index 413b6f1..e6226dc 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -14,7 +14,16 @@ namespace blank { class Application { public: - Application(); + 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;