summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-18 00:45:38 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-18 00:45:38 +0000
commit8a8086d758d7618f3900df057ac840667e867d0c (patch)
treef1953a29a2b17e32fd18ab9be581c9ee2a8dbd8d /src/openglgraphics.h
parent76892afa102fd814b3821c246547f28feb3d7394 (diff)
downloadMana-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.h5
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,