#ifndef __C_GUI_IMAGE_H_INCLUDED__
#define __C_GUI_IMAGE_H_INCLUDED__
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "IGUIImage.h"
namespace irr
{
namespace gui
{
class CGUIImage : public IGUIImage
{
public:
CGUIImage(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
virtual ~CGUIImage();
virtual void setImage(video::ITexture* image);
virtual video::ITexture* getImage() const;
virtual void setColor(video::SColor color);
virtual void setScaleImage(bool scale);
virtual void draw();
virtual void setUseAlphaChannel(bool use);
virtual video::SColor getColor() const;
virtual bool isImageScaled() const;
virtual bool isAlphaChannelUsed() const;
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
private:
video::ITexture* Texture;
video::SColor Color;
bool UseAlphaChannel;
bool ScaleImage;
};
}
}
#endif
#endif