summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 17:08:21 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 17:08:21 +0000
commit97c1de64ccb8828d260024cc64a76d3924d7962b (patch)
treeb124ebef675aa4126f30d084ae7efdc44d28151b /src/graphic/graphic.h
parent304c79eeb6785efc39576cc89985787c1faea485 (diff)
downloadmana-97c1de64ccb8828d260024cc64a76d3924d7962b.tar.gz
mana-97c1de64ccb8828d260024cc64a76d3924d7962b.tar.bz2
mana-97c1de64ccb8828d260024cc64a76d3924d7962b.tar.xz
mana-97c1de64ccb8828d260024cc64a76d3924d7962b.zip
Added drawImageRect function to Graphics class.
Diffstat (limited to 'src/graphic/graphic.h')
-rw-r--r--src/graphic/graphic.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/graphic/graphic.h b/src/graphic/graphic.h
index a3701531..5b61bb28 100644
--- a/src/graphic/graphic.h
+++ b/src/graphic/graphic.h
@@ -103,6 +103,18 @@ class Graphics : public gcn::AllegroGraphics {
~Graphics();
/**
+ * Draws a rectangle using 4 corner images, 4 side images and 1 image
+ * for the inside.
+ */
+ void drawImageRect(
+ int x, int y, int w, int h,
+ Image *topLeft, Image *topRight,
+ Image *bottomLeft, Image *bottomRight,
+ Image *top, Image *right,
+ Image *bottom, Image *left,
+ Image *center);
+
+ /**
* Updates the screen. This is done by either copying the buffer to the
* screen or swapping pages.
*/