X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Finit.hpp;h=f1378e0c6d5a63ad81fc844ec3dbcef1ed891269;hb=bcf776b6d51aeb9147bde32da8dd0768b10db993;hp=63334e89aa46d403ab7930ba5dd3ba586f5b90f8;hpb=91dfd6cd62ea0723c3c83572b4ebfa4ef7b4ac5f;p=blobs.git diff --git a/src/app/init.hpp b/src/app/init.hpp index 63334e8..f1378e0 100644 --- a/src/app/init.hpp +++ b/src/app/init.hpp @@ -1,43 +1,16 @@ #ifndef BLOBS_APP_INIT_HPP_ #define BLOBS_APP_INIT_HPP_ +#include "../graphics/Viewport.hpp" + #include #include -#include #include namespace blobs { namespace app { -class AlutError -: public std::runtime_error { - -public: - explicit AlutError(ALenum); - AlutError(ALenum, const std::string &); - -}; - -class SDLError -: public std::runtime_error { - -public: - SDLError(); - explicit SDLError(const std::string &); - -}; - -class NetError -: public std::runtime_error { - -public: - NetError(); - explicit NetError(const std::string &); - -}; - - class InitSDL { public: @@ -124,7 +97,7 @@ public: class Window { public: - Window(); + Window(int w, int h); ~Window(); Window(const Window &) = delete; @@ -172,15 +145,6 @@ public: }; -struct InitHeadless { - - InitHeadless(); - - InitSDL init_sdl; - InitNet init_net; - -}; - struct Init { Init(bool double_buffer = true, int sample_size = 1); @@ -193,6 +157,7 @@ struct Init { Window window; GLContext ctx; InitGLEW init_glew; + graphics::Viewport viewport; };