1 #ifndef BLOBS_APP_INIT_HPP_
2 #define BLOBS_APP_INIT_HPP_
14 : public std::runtime_error {
17 explicit AlutError(ALenum);
18 AlutError(ALenum, const std::string &);
23 : public std::runtime_error {
27 explicit SDLError(const std::string &);
32 : public std::runtime_error {
36 explicit NetError(const std::string &);
47 InitSDL(const InitSDL &) = delete;
48 InitSDL &operator =(const InitSDL &) = delete;
59 InitVideo(const InitVideo &) = delete;
60 InitVideo &operator =(const InitVideo &) = delete;
71 InitIMG(const InitIMG &) = delete;
72 InitIMG &operator =(const InitIMG &) = delete;
83 InitNet(const InitNet &) = delete;
84 InitNet &operator =(const InitNet &) = delete;
95 InitTTF(const InitTTF &) = delete;
96 InitTTF &operator =(const InitTTF &) = delete;
107 InitAL(const InitAL &) = delete;
108 InitAL &operator =(const InitAL &) = delete;
116 explicit InitGL(bool double_buffer = true, int sample_size = 1);
118 InitGL(const InitGL &) = delete;
119 InitGL &operator =(const InitGL &) = delete;
130 Window(const Window &) = delete;
131 Window &operator =(const Window &) = delete;
139 SDL_Window *Handle() { return handle; }
152 explicit GLContext(SDL_Window *);
155 GLContext(const GLContext &) = delete;
156 GLContext &operator =(const GLContext &) = delete;
169 InitGLEW(const InitGLEW &) = delete;
170 InitGLEW &operator =(const InitGLEW &) = delete;
175 struct InitHeadless {
186 Init(bool double_buffer = true, int sample_size = 1);
188 InitVideo init_video;