public:
explicit Frame(SDL_Surface *s = 0, int borderWidth = 1, int borderHeight = 1, int repeatWidth = 1, int repeatHeight = 1, int xOffset = 0, int yOffset = 0)
: surface(s), borderSize(borderWidth, borderHeight), repeatSize(repeatWidth, repeatHeight), offset(xOffset, yOffset) { }
public:
explicit Frame(SDL_Surface *s = 0, int borderWidth = 1, int borderHeight = 1, int repeatWidth = 1, int repeatHeight = 1, int xOffset = 0, int yOffset = 0)
: surface(s), borderSize(borderWidth, borderHeight), repeatSize(repeatWidth, repeatHeight), offset(xOffset, yOffset) { }
int MinHeight() const { return 2 * BorderHeight(); }
int BorderWidth() const { return BorderSize().X(); }
int BorderHeight() const { return BorderSize().Y(); }
int MinHeight() const { return 2 * BorderHeight(); }
int BorderWidth() const { return BorderSize().X(); }
int BorderHeight() const { return BorderSize().Y(); }
int RepeatWidth() const { return RepeatSize().X(); }
int RepeatHeight() const { return RepeatSize().Y(); }
int RepeatWidth() const { return RepeatSize().X(); }
int RepeatHeight() const { return RepeatSize().Y(); }
- const geometry::Vector<int> RepeatSize() const { return repeatSize; }
- void Draw(SDL_Surface *dest, const geometry::Vector<int> &position, int width, int height) const;
+ const math::Vector<int> RepeatSize() const { return repeatSize; }
+ void Draw(SDL_Surface *dest, const math::Vector<int> &position, int width, int height) const;
- void SetBorderSize(const geometry::Vector<int> &s) { borderSize = s; }
- void SetRepeatSize(const geometry::Vector<int> &s) { repeatSize = s; }
- void SetOffset(const geometry::Vector<int> &o) { offset = o; }
+ void SetBorderSize(const math::Vector<int> &s) { borderSize = s; }
+ void SetRepeatSize(const math::Vector<int> &s) { repeatSize = s; }
+ void SetOffset(const math::Vector<int> &o) { offset = o; }
- geometry::Vector<int> borderSize;
- geometry::Vector<int> repeatSize;
- geometry::Vector<int> offset;
+ math::Vector<int> borderSize;
+ math::Vector<int> repeatSize;
+ math::Vector<int> offset;