summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-01 21:57:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-01 21:57:46 +0300
commit62e2ccbb158f146e2c3ceab14ff5581d3f3975ef (patch)
tree736e615b6ff94e09144df7df3aa06f9f231743ff /src/resources/imagehelper.h
parentd3b57bd96a07a674432fd28cefd2f20ae5404b8b (diff)
downloadmanaplus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.gz
manaplus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.bz2
manaplus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.tar.xz
manaplus-62e2ccbb158f146e2c3ceab14ff5581d3f3975ef.zip
Add to image helper function to copy surface into part of image.
Diffstat (limited to 'src/resources/imagehelper.h')
-rw-r--r--src/resources/imagehelper.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index 6752f3eae..b7080ee4b 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -75,15 +75,22 @@ class ImageHelper notfinal
{ return nullptr; }
#endif
+ virtual SDL_Surface *create32BitSurface(int width,
+ int height)
+ const A_WARN_UNUSED;
+
+ virtual void copySurfaceToImage(Image *const image A_UNUSED,
+ const int x A_UNUSED,
+ const int y A_UNUSED,
+ SDL_Surface *const surface A_UNUSED)
+ const
+ { }
+
static SDL_Surface *convertTo32Bit(SDL_Surface *const tmpImage)
A_WARN_UNUSED;
static void dumpSurfaceFormat(const SDL_Surface *const image);
- virtual SDL_Surface *create32BitSurface(int width,
- int height)
- const A_WARN_UNUSED;
-
static void setEnableAlpha(const bool n)
{ mEnableAlpha = n; }