From 40b479487c29cf4d3cc919ce6b28fad240a75f39 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sat, 31 Aug 2013 17:05:26 -0400 Subject: [PATCH] Add accessors for image dimensions --- PVRTCEncoder/src/Image.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVRTCEncoder/src/Image.h b/PVRTCEncoder/src/Image.h index 5ab8ebb..0846196 100644 --- a/PVRTCEncoder/src/Image.h +++ b/PVRTCEncoder/src/Image.h @@ -74,6 +74,9 @@ class Image { Pixel &operator()(uint32 i, uint32 j); const Pixel &operator()(uint32 i, uint32 j) const; + uint32 GetWidth() const { return m_Width; } + uint32 GetHeight() const { return m_Height; } + private: uint32 m_Width; uint32 m_Height;