1 #ifndef BLANK_APP_INIT_HPP_
2 #define BLANK_APP_INIT_HPP_
18 InitSDL(const InitSDL &) = delete;
19 InitSDL &operator =(const InitSDL &) = delete;
30 InitIMG(const InitIMG &) = delete;
31 InitIMG &operator =(const InitIMG &) = delete;
42 InitTTF(const InitTTF &) = delete;
43 InitTTF &operator =(const InitTTF &) = delete;
51 explicit InitGL(bool double_buffer = true, int sample_size = 1);
53 InitGL(const InitGL &) = delete;
54 InitGL &operator =(const InitGL &) = delete;
65 Window(const Window &) = delete;
66 Window &operator =(const Window &) = delete;
74 GLContext CreateContext();
87 explicit GLContext(SDL_Window *);
90 GLContext(GLContext &&);
91 GLContext &operator =(GLContext &&);
93 GLContext(const GLContext &) = delete;
94 GLContext &operator =(const GLContext &) = delete;
96 static void EnableVSync();
97 static void EnableDepthTest() noexcept;
98 static void EnableBackfaceCulling() noexcept;
99 static void EnableAlphaBlending() noexcept;
100 static void DisableAlphaBlending() noexcept;
102 static void Clear() noexcept;
103 static void ClearDepthBuffer() noexcept;
106 SDL_GLContext handle;
116 InitGLEW(const InitGLEW &) = delete;
117 InitGLEW &operator =(const InitGLEW &) = delete;