From 00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 18:19:40 +0300 Subject: add drawImageRect into each renderer. but copy function body to shared file. --- src/render/sdl2graphics.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/render/sdl2graphics.h') diff --git a/src/render/sdl2graphics.h b/src/render/sdl2graphics.h index b489f2475..91e789640 100644 --- a/src/render/sdl2graphics.h +++ b/src/render/sdl2graphics.h @@ -146,10 +146,18 @@ class SDLGraphics final : public Graphics void completeCache() override final; + /** + * Draws a rectangle using images. 4 corner images, 4 side images and 1 + * image for the inside. + */ + void drawImageRect(int x, int y, int w, int h, + const ImageRect &imgRect); + protected: uint32_t mRendererFlags; uint32_t mOldPixel; int mOldAlpha; + }; #endif // USE_SDL2 -- cgit v1.2.3-60-g2f50