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/safeopenglgraphics.cpp | |
parent | 08cf8a155aebaa2f148677f1fb766733e718440f (diff) | |
download | plus-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.gz plus-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.bz2 plus-dee232be436909e84a39e9bc3e8949dbaba38e05.tar.xz plus-dee232be436909e84a39e9bc3e8949dbaba38e05.zip |
Add to OpenGL renderers function for clear screen.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r-- | src/render/safeopenglgraphics.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index 58ab99923..236e09841 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -722,6 +722,11 @@ void SafeOpenGLGraphics::restoreColor() mByteColor = mColor; } +void SafeOpenGLGraphics::clearScreen() const +{ + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); +} + void SafeOpenGLGraphics::drawImageRect(const int x, const int y, const int w, const int h, const ImageRect &imgRect) |