You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
374 B
23 lines
374 B
#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
|