X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.hpp;h=d08437b0cd46b5408cc111733ce6587596ff1b81;hb=c899292fd5dee11bee0fafadf051f4204eb4bf2a;hp=51ab3f834b03054a2783b6838261fd0329d98fe4;hpb=59fe611e6ee06f8e9445f1b19339a1f158c9322c;p=blank.git diff --git a/src/init.hpp b/src/init.hpp index 51ab3f8..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; @@ -83,8 +82,12 @@ 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; @@ -95,7 +98,6 @@ class InitGLEW { public: InitGLEW(); - ~InitGLEW(); InitGLEW(const InitGLEW &) = delete; InitGLEW &operator =(const InitGLEW &) = delete;