2011-08-15 11:06:15 -03:00

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