diff options
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r-- | src/openglgraphics.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h index b082d0d3..cd99e6a6 100644 --- a/src/openglgraphics.h +++ b/src/openglgraphics.h @@ -62,6 +62,11 @@ class OpenGLGraphics : public Graphics void setTargetPlane(int width, int height); + /** + * takes a screenshot and returns it as SDL surface + */ + SDL_Surface* getScreenshot(); + protected: void setTexturingAndBlending(bool enable); void drawTexedQuad(int x, int y, int w, int h, |