}
}
-InitGL::~InitGL() {
-
-}
-
Window::Window()
: handle(SDL_CreateWindow(
}
}
+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;
}
}
-InitGLEW::~InitGLEW() {
-
-}
-
}