fixed ratio image drawing support

This commit is contained in:
Eduardo Bart
2011-10-28 21:56:45 -02:00
parent 6c200bd764
commit f4f0d7e960
10 changed files with 66 additions and 68 deletions

View File

@@ -30,15 +30,16 @@
class Image
{
public:
Image(TexturePtr texture, Rect textureCoords = Rect());
Image();
static ImagePtr loadFromOTML(const OTMLNodePtr& imageNode);
void loadFromOTML(const OTMLNodePtr& imageNode);
virtual void draw(const Rect& screenCoords);
protected:
TexturePtr m_texture;
Rect m_textureCoords;
bool m_fixedRatio;
};
#endif