summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/sdl2graphics.h')
-rw-r--r--src/render/sdl2graphics.h8
1 files changed, 8 insertions, 0 deletions
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