1 #ifndef BLANK_APP_INIT_HPP_
2 #define BLANK_APP_INIT_HPP_
13 : public std::runtime_error {
16 explicit AlutError(ALenum);
17 AlutError(ALenum, const std::string &);
22 : public std::runtime_error {
26 explicit SDLError(const std::string &);
31 : public std::runtime_error {
35 explicit NetError(const std::string &);
46 InitSDL(const InitSDL &) = delete;
47 InitSDL &operator =(const InitSDL &) = delete;
58 InitVideo(const InitVideo &) = delete;
59 InitVideo &operator =(const InitVideo &) = delete;
70 InitIMG(const InitIMG &) = delete;
71 InitIMG &operator =(const InitIMG &) = delete;
82 InitNet(const InitNet &) = delete;
83 InitNet &operator =(const InitNet &) = delete;
94 InitTTF(const InitTTF &) = delete;
95 InitTTF &operator =(const InitTTF &) = delete;
106 InitAL(const InitAL &) = delete;
107 InitAL &operator =(const InitAL &) = delete;
115 explicit InitGL(bool double_buffer = true, int sample_size = 1);
117 InitGL(const InitGL &) = delete;
118 InitGL &operator =(const InitGL &) = delete;
129 Window(const Window &) = delete;
130 Window &operator =(const Window &) = delete;
138 SDL_Window *Handle() { return handle; }
151 explicit GLContext(SDL_Window *);
154 GLContext(const GLContext &) = delete;
155 GLContext &operator =(const GLContext &) = delete;
168 InitGLEW(const InitGLEW &) = delete;
169 InitGLEW &operator =(const InitGLEW &) = delete;
174 struct InitHeadless {
185 Init(bool double_buffer = true, int sample_size = 1);
187 InitVideo init_video;