X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.hpp;h=30da3beb1cb33a5284fb2772a570dfcee5180d67;hb=76b3ec0f6aa0dacf6d4944a2787991f3585299e8;hp=d596cbc346f880247a98b8b3ceae9e278acdaa9a;hpb=482114e156e91729f2529ea6bb1fe98dacdee97f;p=blank.git diff --git a/src/init.hpp b/src/init.hpp index d596cbc..30da3be 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,10 +82,11 @@ public: GLContext &operator =(const GLContext &) = delete; static void EnableVSync(); - static void EnableDepthTest(); - static void EnableBackfaceCulling(); + static void EnableDepthTest() noexcept; + static void EnableBackfaceCulling() noexcept; - static void Clear(); + static void Clear() noexcept; + static void ClearDepthBuffer() noexcept; private: SDL_GLContext handle; @@ -98,7 +98,6 @@ class InitGLEW { public: InitGLEW(); - ~InitGLEW(); InitGLEW(const InitGLEW &) = delete; InitGLEW &operator =(const InitGLEW &) = delete;