summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/image.h5
-rw-r--r--src/resources/subimage.h3
2 files changed, 8 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;
diff --git a/src/resources/subimage.h b/src/resources/subimage.h
index fc9ed5826..1fa0eb3ed 100644
--- a/src/resources/subimage.h
+++ b/src/resources/subimage.h
@@ -78,6 +78,9 @@ class SubImage final : public Image
const int width,
const int height) override final A_WARN_UNUSED;
+ ImageTypeT getType() const override final
+ { return ImageType::SubImage; }
+
int calcMemoryLocal() const override;
#ifdef USE_OPENGL