X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.hpp;h=d08437b0cd46b5408cc111733ce6587596ff1b81;hb=4485397da18a25dfd1a51e864814887b66ba0f2e;hp=a2f2de7779ec94ddb20d7a1664ab2ef2e873c0b5;hpb=ea1ce7b0fb7709ae56977480821ac96a231a0686;p=blank.git diff --git a/src/init.hpp b/src/init.hpp index a2f2de7..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,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; @@ -94,7 +98,6 @@ class InitGLEW { public: InitGLEW(); - ~InitGLEW(); InitGLEW(const InitGLEW &) = delete; InitGLEW &operator =(const InitGLEW &) = delete;