diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-18 00:45:38 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-18 00:45:38 +0000 |
commit | 8a8086d758d7618f3900df057ac840667e867d0c (patch) | |
tree | f1953a29a2b17e32fd18ab9be581c9ee2a8dbd8d /src/openglgraphics.h | |
parent | 76892afa102fd814b3821c246547f28feb3d7394 (diff) | |
download | mana-8a8086d758d7618f3900df057ac840667e867d0c.tar.gz mana-8a8086d758d7618f3900df057ac840667e867d0c.tar.bz2 mana-8a8086d758d7618f3900df057ac840667e867d0c.tar.xz mana-8a8086d758d7618f3900df057ac840667e867d0c.zip |
Changed Graphics::saveScreenshot to Graphics::getScreenshot. Now using the ImageWriter to save that screenshot.
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, |