summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-06 17:40:26 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-06 17:40:26 +0300
commit1d563a171844af47aa013519618ad018d2b194ea (patch)
treeacfd151ade17f31992dbc24fa1948dab19083885 /src/resources/image.h
parent99cca58b333793bec5c916870901e964360ed4f4 (diff)
downloadmv-1d563a171844af47aa013519618ad018d2b194ea.tar.gz
mv-1d563a171844af47aa013519618ad018d2b194ea.tar.bz2
mv-1d563a171844af47aa013519618ad018d2b194ea.tar.xz
mv-1d563a171844af47aa013519618ad018d2b194ea.zip
Add image type for image classes. for detect what kind of class used in image.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index e1c100e28..39492c360 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -25,6 +25,8 @@
#include "localconsts.h"
+#include "enums/resources/imagetype.h"
+
#include "resources/resource.h"
#include <SDL_video.h>
@@ -191,6 +193,9 @@ class Image notfinal : public Resource
int calcMemoryLocal() const override;
+ virtual ImageTypeT getType() const
+ { return ImageType::Image; }
+
SDL_Rect mBounds;
float mAlpha;