diff options
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h index 91bb01cf..79513e2c 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -96,6 +96,14 @@ class Graphics : public gcn::Graphics 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 drawImageF(Image *image, float x, float y); + + /** * Draws a rescaled version of the image. */ virtual bool drawRescaledImage(Image *image, int srcX, int srcY, @@ -105,6 +113,15 @@ class Graphics : public gcn::Graphics bool useColor = false) = 0; /** + * Draws a rescaled version of the image. + */ + virtual bool drawRescaledImageF(Image *image, int srcX, int srcY, + float dstX, float dstY, + int width, int height, + float desiredWidth, float desiredHeight, + bool useColor = false); + + /** * Blits an image onto the screen. * * @return <code>true</code> if the image was blitted properly @@ -116,6 +133,18 @@ class Graphics : public gcn::Graphics int width, int height, bool useColor = false); + /** + * Blits an image onto the screen. + * + * @return <code>true</code> if the image was blitted properly + * <code>false</code> otherwise. + */ + virtual bool drawImageF(Image *image, + int srcX, int srcY, + float dstX, float dstY, + int width, int height, + bool useColor = false); + virtual void drawImagePattern(Image *image, int x, int y, int w, int h); |