X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.hpp;h=d08437b0cd46b5408cc111733ce6587596ff1b81;hb=e74f1ad236429f05db90c0ace825277e2a3fbc05;hp=bf6191b1daf6e1c3e7a8afacb13b3c5d87d0d532;hpb=e1e349bb6035463529bc341c472987d229e1cdca;p=blank.git diff --git a/src/init.hpp b/src/init.hpp index bf6191b..d08437b 100644 --- a/src/init.hpp +++ b/src/init.hpp @@ -36,8 +36,7 @@ public: class InitGL { public: - InitGL(); - ~InitGL(); + explicit InitGL(bool double_buffer = true, int sample_size = 1); InitGL(const InitGL &) = delete; InitGL &operator =(const InitGL &) = delete; @@ -54,6 +53,12 @@ public: Window(const Window &) = delete; Window &operator =(const Window &) = delete; + void GrabInput(); + void ReleaseInput(); + + void GrabMouse(); + void ReleaseMouse(); + GLContext CreateContext(); void Flip(); @@ -77,6 +82,11 @@ public: GLContext &operator =(const GLContext &) = delete; static void EnableVSync(); + static void EnableDepthTest(); + static void EnableBackfaceCulling(); + + static void Clear(); + static void ClearDepthBuffer(); private: SDL_GLContext handle; @@ -88,7 +98,6 @@ class InitGLEW { public: InitGLEW(); - ~InitGLEW(); InitGLEW(const InitGLEW &) = delete; InitGLEW &operator =(const InitGLEW &) = delete;