summaryrefslogtreecommitdiff
path: root/src/resources/imageset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/imageset.h')
-rw-r--r--src/resources/imageset.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources/imageset.h b/src/resources/imageset.h
index 55031732..5d9bdc2e 100644
--- a/src/resources/imageset.h
+++ b/src/resources/imageset.h
@@ -56,11 +56,25 @@ class ImageSet : public Resource
size_type size() const { return mImages.size(); }
+ int getOffsetX() const
+ { return mOffsetX; }
+
+ void setOffsetX(int n)
+ { mOffsetX = n; }
+
+ int getOffsetY() const
+ { return mOffsetY; }
+
+ void setOffsetY(int n)
+ { mOffsetY = n; }
+
private:
std::vector<Image*> mImages;
int mHeight; /**< Height of the images in the image set. */
int mWidth; /**< Width of the images in the image set. */
+ int mOffsetX;
+ int mOffsetY;
};
#endif