mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 22:43:27 +02:00
fixed ratio image drawing support
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user