From c9f8bba932022ffd90031713c51861587f86b244 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Dec 2013 23:06:17 +0300 Subject: Add cached draw methods into renderers. --- src/render/surfacegraphics.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/render/surfacegraphics.h') diff --git a/src/render/surfacegraphics.h b/src/render/surfacegraphics.h index b33fa0d63..6a2a7f3cb 100644 --- a/src/render/surfacegraphics.h +++ b/src/render/surfacegraphics.h @@ -188,6 +188,16 @@ class SurfaceGraphics final : public Graphics const int width, const int height, const bool useColor) override final; + void drawImageCached(const Image *const image, + int x, int y) override final; + + void drawPatternCached(const Image *const image, + const int x, const int y, + const int w, const int h) override final + { } + + void completeCache() override final; + protected: BlitMode mBlitMode; SDL_Surface *mTarget; -- cgit v1.2.3-60-g2f50