From f2bf0b4459f4d2595688ca374feed5b756959b28 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2011 20:44:04 +0300 Subject: Add default offsets in imageset tag for all animations. --- src/resources/imageset.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/resources/imageset.h') diff --git a/src/resources/imageset.h b/src/resources/imageset.h index 9ca8bb678..fd320295a 100644 --- a/src/resources/imageset.h +++ b/src/resources/imageset.h @@ -63,11 +63,25 @@ class ImageSet : public Resource size_type size() const { return mImages.size(); } + int getOffsetX() + { return mOffsetX; } + + void setOffsetX(int n) + { mOffsetX = n; } + + int getOffsetY() + { return mOffsetY; } + + void setOffsetY(int n) + { mOffsetY = n; } + private: std::vector 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 -- cgit v1.2.3-60-g2f50