]> git.localhorst.tv Git - blank.git/blobdiff - src/init.hpp
noexcept all the things
[blank.git] / src / init.hpp
index a467e69157eebc63e29dd5dcb961aeb8cb4febad..30da3beb1cb33a5284fb2772a570dfcee5180d67 100644 (file)
@@ -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,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;