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 &);
37 InitSDL(const InitSDL &) = delete;
38 InitSDL &operator =(const InitSDL &) = delete;
49 InitIMG(const InitIMG &) = delete;
50 InitIMG &operator =(const InitIMG &) = delete;
61 InitTTF(const InitTTF &) = delete;
62 InitTTF &operator =(const InitTTF &) = delete;
73 InitAL(const InitAL &) = delete;
74 InitAL &operator =(const InitAL &) = delete;
82 explicit InitGL(bool double_buffer = true, int sample_size = 1);
84 InitGL(const InitGL &) = delete;
85 InitGL &operator =(const InitGL &) = delete;
96 Window(const Window &) = delete;
97 Window &operator =(const Window &) = delete;
105 SDL_Window *Handle() { return handle; }
118 explicit GLContext(SDL_Window *);
121 GLContext(const GLContext &) = delete;
122 GLContext &operator =(const GLContext &) = delete;
135 InitGLEW(const InitGLEW &) = delete;
136 InitGLEW &operator =(const InitGLEW &) = delete;
143 Init(bool double_buffer = true, int sample_size = 1);