]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Application.hpp
some experiments with sound
[blank.git] / src / app / Application.hpp
index ea7421161b9031e45aa9f54d78bff38c5be6db73..636b82e85899c389a7f69437a001495b638ec428 100644 (file)
@@ -2,12 +2,11 @@
 #define BLANK_APP_APPLICATION_HPP_
 
 #include "Assets.hpp"
+#include "FrameCounter.hpp"
 #include "init.hpp"
 #include "RandomWalk.hpp"
-#include "../graphics/BlendedSprite.hpp"
-#include "../graphics/BlockLighting.hpp"
-#include "../graphics/Camera.hpp"
-#include "../graphics/DirectionalLighting.hpp"
+#include "../audio/Audio.hpp"
+#include "../graphics/Viewport.hpp"
 #include "../ui/Interface.hpp"
 #include "../world/World.hpp"
 
@@ -29,6 +28,7 @@ public:
        };
 
        explicit Application(const Config &);
+       ~Application();
 
        Application(const Application &) = delete;
        Application &operator =(const Application &) = delete;
@@ -56,20 +56,12 @@ public:
        static Entity &MakeTestEntity(World &);
 
 private:
-       InitSDL init_sdl;
-       InitIMG init_img;
-       InitTTF init_ttf;
-       InitGL init_gl;
-       Window window;
-       GLContext ctx;
-       InitGLEW init_glew;
+       Init init;
+       Viewport viewport;
        Assets assets;
+       Audio audio;
+       FrameCounter counter;
 
-       BlockLighting chunk_prog;
-       DirectionalLighting entity_prog;
-       BlendedSprite sprite_prog;
-
-       Camera cam;
        World world;
        Interface interface;