mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
23 lines
374 B
C++
23 lines
374 B
C++
#ifndef IMAGE_H
|
|
#define IMAGE_H
|
|
|
|
#include "declarations.h"
|
|
|
|
#include <framework/otml/declarations.h>
|
|
|
|
class Image
|
|
{
|
|
public:
|
|
Image(TexturePtr texture, Rect textureCoords = Rect());
|
|
|
|
static ImagePtr loadFromOTML(const OTMLNodePtr& imageNode);
|
|
|
|
virtual void draw(const Rect& screenCoords);
|
|
|
|
protected:
|
|
TexturePtr m_texture;
|
|
Rect m_textureCoords;
|
|
};
|
|
|
|
#endif
|