summaryrefslogtreecommitdiff
path: root/src/render/normalopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-22 20:13:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-22 20:13:25 +0300
commitdee232be436909e84a39e9bc3e8949dbaba38e05 (patch)
tree7906ae43fad0126e4c2c7f78c80f67ff44064ae2 /src/render/normalopenglgraphics.cpp
parent08cf8a155aebaa2f148677f1fb766733e718440f (diff)
downloadmanaverse-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.gz
manaverse-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.bz2
manaverse-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.xz
manaverse-dee232be436909e84a39e9bc3e8949dbaba38e05.zip
Add to OpenGL renderers function for clear screen.
Diffstat (limited to 'src/render/normalopenglgraphics.cpp')
-rw-r--r--src/render/normalopenglgraphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp
index c8fe89c89..75064a435 100644
--- a/src/render/normalopenglgraphics.cpp
+++ b/src/render/normalopenglgraphics.cpp
@@ -1607,6 +1607,11 @@ void NormalOpenGLGraphics::calcImageRect(ImageVertexes *const vert,
#include "render/graphics_calcImageRect.hpp"
}
+void NormalOpenGLGraphics::clearScreen() const
+{
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
+}
+
#ifdef DEBUG_BIND_TEXTURE
void NormalOpenGLGraphics::debugBindTexture(const Image *const image)
{