[drape] new clear depth buffer function

This commit is contained in:
ExMix 2014-08-05 12:31:56 +03:00 committed by Alex Zolotarev
parent a01ed92d8a
commit 6b2958cad3
2 changed files with 7 additions and 0 deletions

View file

@ -194,6 +194,12 @@ void GLFunctions::glClear()
GLCHECK(glClearFn(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
}
void GLFunctions::glClearDepth()
{
ASSERT(glClearFn != NULL, ());
GLCHECK(glClearFn(GL_DEPTH_BUFFER_BIT));
}
void GLFunctions::glViewport(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
{
ASSERT(glViewportFn != NULL, ());

View file

@ -11,6 +11,7 @@ public:
static bool glHasExtension(string const & name);
static void glClearColor(float r, float g, float b, float a);
static void glClear();
static void glClearDepth();
static void glViewport(uint32_t x, uint32_t y, uint32_t w, uint32_t h);
static void glFlush();