]> git.localhorst.tv Git - blank.git/blobdiff - src/init.cpp
remove unused (explicit) destructors
[blank.git] / src / init.cpp
index 40f76de50ef06eed4995f065013fd1a2a135c23d..2c1c73ad6155e0aae9654f9fa9a58f6c93477fe2 100644 (file)
@@ -62,10 +62,6 @@ InitGL::InitGL() {
        }
 }
 
-InitGL::~InitGL() {
-
-}
-
 
 Window::Window()
 : handle(SDL_CreateWindow(
@@ -142,10 +138,19 @@ void GLContext::EnableVSync() {
        }
 }
 
+void GLContext::EnableDepthTest() {
+       glEnable(GL_DEPTH_TEST);
+       glDepthFunc(GL_LESS);
+}
+
 void GLContext::EnableBackfaceCulling() {
        glEnable(GL_CULL_FACE);
 }
 
+void GLContext::Clear() {
+       glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+}
+
 
 InitGLEW::InitGLEW() {
        glewExperimental = GL_TRUE;
@@ -162,8 +167,4 @@ InitGLEW::InitGLEW() {
        }
 }
 
-InitGLEW::~InitGLEW() {
-
-}
-
 }