]> git.localhorst.tv Git - blank.git/blobdiff - src/app.hpp
added ability to get seperate information about block face obstruction
[blank.git] / src / app.hpp
index 413b6f19869430f22b665d690d4d8a67cd0ff50d..e6226dc50454dff487aa8596460b68dcfdf0670a 100644 (file)
@@ -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;