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/nullopenglgraphics.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/render/nullopenglgraphics.h') diff --git a/src/render/nullopenglgraphics.h b/src/render/nullopenglgraphics.h index bf424bb8d..7b15cfbf5 100644 --- a/src/render/nullopenglgraphics.h +++ b/src/render/nullopenglgraphics.h @@ -200,6 +200,15 @@ class NullOpenGLGraphics 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; + #ifdef DEBUG_DRAW_CALLS unsigned int getDrawCalls() const { return mLastDrawCalls; } -- cgit v1.2.3-70-g09d2