X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.hpp;h=636b82e85899c389a7f69437a001495b638ec428;hb=7c2a8b8285278b8a3077b311d82f05ea0463a96e;hp=97cac73805b5ddad01c194e2f22d023830869d36;hpb=5c295a495e02b4987b63c682406f5f29402c00da;p=blank.git diff --git a/src/app/Application.hpp b/src/app/Application.hpp index 97cac73..636b82e 100644 --- a/src/app/Application.hpp +++ b/src/app/Application.hpp @@ -5,10 +5,8 @@ #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" @@ -30,6 +28,7 @@ public: }; explicit Application(const Config &); + ~Application(); Application(const Application &) = delete; Application &operator =(const Application &) = delete; @@ -57,21 +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;