1 #ifndef BLANK_APP_INIT_HPP_
2 #define BLANK_APP_INIT_HPP_
12 : public std::runtime_error {
16 explicit SDLError(const std::string &);
27 InitSDL(const InitSDL &) = delete;
28 InitSDL &operator =(const InitSDL &) = delete;
39 InitIMG(const InitIMG &) = delete;
40 InitIMG &operator =(const InitIMG &) = delete;
51 InitTTF(const InitTTF &) = delete;
52 InitTTF &operator =(const InitTTF &) = delete;
60 explicit InitGL(bool double_buffer = true, int sample_size = 1);
62 InitGL(const InitGL &) = delete;
63 InitGL &operator =(const InitGL &) = delete;
74 Window(const Window &) = delete;
75 Window &operator =(const Window &) = delete;
83 SDL_Window *Handle() { return handle; }
96 explicit GLContext(SDL_Window *);
99 GLContext(const GLContext &) = delete;
100 GLContext &operator =(const GLContext &) = delete;
113 InitGLEW(const InitGLEW &) = delete;
114 InitGLEW &operator =(const InitGLEW &) = delete;
121 Init(bool double_buffer = true, int sample_size = 1);