diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-22 20:13:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-22 20:13:25 +0300 |
commit | dee232be436909e84a39e9bc3e8949dbaba38e05 (patch) | |
tree | 7906ae43fad0126e4c2c7f78c80f67ff44064ae2 /src/render/mobileopenglgraphics.cpp | |
parent | 08cf8a155aebaa2f148677f1fb766733e718440f (diff) | |
download | mv-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.gz mv-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.bz2 mv-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.xz mv-dee232be436909e84a39e9bc3e8949dbaba38e05.zip |
Add to OpenGL renderers function for clear screen.
Diffstat (limited to 'src/render/mobileopenglgraphics.cpp')
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 58760ce60..8150c4f66 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -1318,6 +1318,11 @@ void MobileOpenGLGraphics::calcImageRect(ImageVertexes *const vert, #include "render/graphics_calcImageRect.hpp" } +void MobileOpenGLGraphics::clearScreen() const +{ + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); +} + #ifdef DEBUG_BIND_TEXTURE void MobileOpenGLGraphics::debugBindTexture(const Image *const image) { |