Add accessors for image dimensions

This commit is contained in:
Pavel Krajcevski 2013-08-31 17:05:26 -04:00
parent 36641c2268
commit 40b479487c

View file

@ -74,6 +74,9 @@ class Image {
Pixel &operator()(uint32 i, uint32 j); Pixel &operator()(uint32 i, uint32 j);
const Pixel &operator()(uint32 i, uint32 j) const; const Pixel &operator()(uint32 i, uint32 j) const;
uint32 GetWidth() const { return m_Width; }
uint32 GetHeight() const { return m_Height; }
private: private:
uint32 m_Width; uint32 m_Width;
uint32 m_Height; uint32 m_Height;