X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Finit.hpp;h=13bffa1f30e8886087ac441319f0f9af766f8aa3;hb=7c2a8b8285278b8a3077b311d82f05ea0463a96e;hp=122210d1e96bc426a33de8b8a6fb938eda02976e;hpb=5d2da8a07411ad6417d6ed8d1be997189cf5ce89;p=blank.git diff --git a/src/app/init.hpp b/src/app/init.hpp index 122210d..13bffa1 100644 --- a/src/app/init.hpp +++ b/src/app/init.hpp @@ -1,6 +1,7 @@ #ifndef BLANK_APP_INIT_HPP_ #define BLANK_APP_INIT_HPP_ +#include #include #include #include @@ -8,6 +9,15 @@ namespace blank { +class AlutError +: public std::runtime_error { + +public: + explicit AlutError(ALenum); + AlutError(ALenum, const std::string &); + +}; + class SDLError : public std::runtime_error { @@ -54,6 +64,18 @@ public: }; +class InitAL { + +public: + InitAL(); + ~InitAL(); + + InitAL(const InitAL &) = delete; + InitAL &operator =(const InitAL &) = delete; + +}; + + class InitGL { public: @@ -123,6 +145,7 @@ struct Init { InitSDL init_sdl; InitIMG init_img; InitTTF init_ttf; + InitAL init_al; InitGL init_gl; Window window; GLContext ctx;