summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 21:11:54 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 21:11:54 +0000
commit0ce6e9e8400c326e6848688b3b865c84d96e3073 (patch)
treedcdadb14763fabace881ca0c53ff946a635c9c20 /src/graphics.h
parent89dd5a7e669012bdb838cbf41418b2d779df300b (diff)
downloadmana-client-0ce6e9e8400c326e6848688b3b865c84d96e3073.tar.gz
mana-client-0ce6e9e8400c326e6848688b3b865c84d96e3073.tar.bz2
mana-client-0ce6e9e8400c326e6848688b3b865c84d96e3073.tar.xz
mana-client-0ce6e9e8400c326e6848688b3b865c84d96e3073.zip
Moved image drawing code into the graphics class.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/graphics.h b/src/graphics.h
index ce4a281f..4b6bdd67 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -65,7 +65,22 @@ public gcn::SDLGraphics {
*/
bool setFullscreen(bool fs);
- void drawImage(Image *image, int x, int y);
+ /**
+ * Blits an image onto the screen.
+ *
+ * @return <code>true</code> if the image was blitted properly
+ * <code>false</code> otherwise.
+ */
+ bool drawImage(Image *image, int x, int y);
+
+ /**
+ * Blits an image onto the screen.
+ *
+ * @return <code>true</code> if the image was blitted properly
+ * <code>false</code> otherwise.
+ */
+ bool drawImage(Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height);
+
void drawImagePattern(Image *image, int x, int y, int w, int h);
/**