diff options
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/resources/image.h b/src/resources/image.h index d5c98c5d..1c2b58cf 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -83,7 +83,18 @@ class Image : public Resource virtual Image* getScaledInstance(int width, int height); /** - * Blits the internal image onto the screen. + * Blits the image onto the screen. + * + * @return <code>true</code> if the image was blitted properly + * <code>false</code> otherwise. + */ + virtual bool draw(SDL_Surface *screen, + int srcX, int srcY, + int dstX, int dstY, + int width, int height); + + /** + * Blits the image onto the screen. * * @return <code>true</code> if the image was blitted properly * <code>false</code> otherwise. @@ -137,6 +148,12 @@ class SubImage : public Image Image* getSubImage(int x, int y, int width, int height); /** + * Draws this image. + */ + bool draw(SDL_Surface *screen, int srcX, int srcY, + int dstX, int dstY, int width, int height); + + /** * Draws the clipped image onto the screen. * @return <code>true</code> if drawing was succesful * <code>false</code> otherwise. |