From 78fb544aeb8761e8d554487487bc27e610822e2d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 16 Dec 2015 01:03:19 +0300 Subject: Use screenshort helpers for creating screenshots --- src/render/graphics.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/render/graphics.h') diff --git a/src/render/graphics.h b/src/render/graphics.h index f8d10a832..0f0e14776 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -105,6 +105,9 @@ struct SDL_Window; class Graphics notfinal { public: +#ifdef USE_OPENGL + friend class OpenGLScreenshotHelper; +#endif friend class SdlScreenshotHelper; A_DELETE_COPY(Graphics) @@ -246,14 +249,6 @@ class Graphics notfinal */ int getHeight() const A_WARN_UNUSED; - /** - * Takes a screenshot and returns it as SDL surface. - */ - virtual SDL_Surface *getScreenshot() A_WARN_UNUSED = 0; - - virtual void prepareScreenshot() - { } - int getMemoryUsage() const A_WARN_UNUSED; virtual void drawNet(const int x1, const int y1, -- cgit v1.2.3-60-g2f50