diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-28 23:06:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-29 14:55:33 +0300 |
commit | c9f8bba932022ffd90031713c51861587f86b244 (patch) | |
tree | db2184f1a1ac5649792c5ac57415bfa71a2c307a /src/render/graphics.h | |
parent | 9bc564d99774045fa0c10f253dd54b223416bc34 (diff) | |
download | plus-c9f8bba932022ffd90031713c51861587f86b244.tar.gz plus-c9f8bba932022ffd90031713c51861587f86b244.tar.bz2 plus-c9f8bba932022ffd90031713c51861587f86b244.tar.xz plus-c9f8bba932022ffd90031713c51861587f86b244.zip |
Add cached draw methods into renderers.
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r-- | src/render/graphics.h | 9 |
1 files changed, 9 insertions, 0 deletions
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; |