diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-14 21:11:54 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-14 21:11:54 +0000 |
commit | 0ce6e9e8400c326e6848688b3b865c84d96e3073 (patch) | |
tree | dcdadb14763fabace881ca0c53ff946a635c9c20 /src/graphics.h | |
parent | 89dd5a7e669012bdb838cbf41418b2d779df300b (diff) | |
download | mana-0ce6e9e8400c326e6848688b3b865c84d96e3073.tar.gz mana-0ce6e9e8400c326e6848688b3b865c84d96e3073.tar.bz2 mana-0ce6e9e8400c326e6848688b3b865c84d96e3073.tar.xz mana-0ce6e9e8400c326e6848688b3b865c84d96e3073.zip |
Moved image drawing code into the graphics class.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 17 |
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); /** |