class InitGL {
public:
- InitGL();
+ explicit InitGL(bool double_buffer = true, int sample_size = 1);
InitGL(const InitGL &) = delete;
InitGL &operator =(const InitGL &) = delete;
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;