X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.cpp;h=061e848e073691af5fcedca51763e4af97c91a80;hb=d66d14f853f2d05f54076d38c72e53419dfc4cc5;hp=9e73c2890226e11cd20a271cefae00c79c4f3e7c;hpb=482114e156e91729f2529ea6bb1fe98dacdee97f;p=blank.git diff --git a/src/init.cpp b/src/init.cpp index 9e73c28..061e848 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -62,10 +62,6 @@ InitGL::InitGL() { } } -InitGL::~InitGL() { - -} - Window::Window() : handle(SDL_CreateWindow( @@ -155,6 +151,10 @@ void GLContext::Clear() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } +void GLContext::ClearDepthBuffer() { + glClear(GL_DEPTH_BUFFER_BIT); +} + InitGLEW::InitGLEW() { glewExperimental = GL_TRUE; @@ -171,8 +171,4 @@ InitGLEW::InitGLEW() { } } -InitGLEW::~InitGLEW() { - -} - }