X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.hpp;h=30da3beb1cb33a5284fb2772a570dfcee5180d67;hb=83ed3de28841d1eecfca39ff540e804cf6809b32;hp=6064fca4b58a5cd6acb5b037a2f5881216b4823d;hpb=41e0223ec090142bf03066f4f5fc1f5005095072;p=blank.git diff --git a/src/init.hpp b/src/init.hpp index 6064fca..30da3be 100644 --- a/src/init.hpp +++ b/src/init.hpp @@ -36,7 +36,7 @@ public: class InitGL { public: - InitGL(); + explicit InitGL(bool double_buffer = true, int sample_size = 1); InitGL(const InitGL &) = delete; InitGL &operator =(const InitGL &) = delete; @@ -82,11 +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 ClearDepthBuffer(); + static void Clear() noexcept; + static void ClearDepthBuffer() noexcept; private: SDL_GLContext handle;