aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/opengl-graphics.h
diff options
context:
space:
mode:
authorJohannes Schickel2013-10-19 20:39:01 +0200
committerJohannes Schickel2013-10-19 22:18:22 +0200
commit05c347fc8ad8edc990c9d6e7c15a12d93bd8a3a3 (patch)
treeb799e0558717fc4ee57bfbaef8aed71dcea2539d /backends/graphics/opengl/opengl-graphics.h
parent37f71235529f8fd4a4c90389dc6a3b41e355f4a9 (diff)
downloadscummvm-rg350-05c347fc8ad8edc990c9d6e7c15a12d93bd8a3a3.tar.gz
scummvm-rg350-05c347fc8ad8edc990c9d6e7c15a12d93bd8a3a3.tar.bz2
scummvm-rg350-05c347fc8ad8edc990c9d6e7c15a12d93bd8a3a3.zip
OPENGL/SDL: Add screenshot support.
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.h')
-rw-r--r--backends/graphics/opengl/opengl-graphics.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h
index 67ad5aa067..ebfe38fb60 100644
--- a/backends/graphics/opengl/opengl-graphics.h
+++ b/backends/graphics/opengl/opengl-graphics.h
@@ -247,6 +247,14 @@ protected:
*/
virtual bool loadVideoMode(uint requestedWidth, uint requestedHeight, const Graphics::PixelFormat &format) = 0;
+ /**
+ * Save a screenshot of the full display as BMP to the given file. This
+ * uses Common::DumpFile for writing the screenshot.
+ *
+ * @param filename The output filename.
+ */
+ void saveScreenshot(const Common::String &filename) const;
+
private:
//
// OpenGL utilities