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/graphics.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/render/graphics.h') diff --git a/src/render/graphics.h b/src/render/graphics.h index 2aa850d41..82bf220ab 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -385,6 +385,15 @@ class Graphics : public gcn::Graphics const int width, const int height, const bool useColor) = 0; + virtual void drawImageCached(const Image *const image, + int srcX, int srcY) = 0; + + virtual void drawPatternCached(const Image *const image, + const int x, const int y, + const int w, const int h) = 0; + + virtual void completeCache() = 0; + int mWidth; int mHeight; -- cgit v1.2.3-70-g09d2