Inherited by CEGUI::CoronaImageCodec, CEGUI::DevILImageCodec, CEGUI::FreeImageImageCodec, CEGUI::SILLYImageCodec, and CEGUI::TGAImageCodec.
Public Member Functions | |
virtual | ~ImageCodec () |
Destructor. | |
const String & | getIdentifierString () const |
Return the name of the image codec object. | |
const String & | getSupportedFormat () const |
Return the list of image file format supported. | |
virtual Texture * | load (const RawDataContainer &data, Texture *result)=0 |
Load an image from a memory buffer. | |
Protected Member Functions | |
ImageCodec (const String &name) | |
Protected Attributes | |
String | d_supportedFormat |
list all image file format supported |
This class define the loading of an abstract
const String & CEGUI::ImageCodec::getIdentifierString | ( | ) | const |
Return the name of the image codec object.
Return the name of the image codec
Referenced by CEGUI::OpenGLTexture::loadFromFile(), and CEGUI::DirectfbTexture::loadFromFile().
const String & CEGUI::ImageCodec::getSupportedFormat | ( | ) | const |
Return the list of image file format supported.
Return a list of space separated image format supported by this codec
References d_supportedFormat.
virtual Texture* CEGUI::ImageCodec::load | ( | const RawDataContainer & | data, | |
Texture * | result | |||
) | [pure virtual] |
Load an image from a memory buffer.
data | the image data | |
result | the texture to use for storing the image data |
Implemented in CEGUI::CoronaImageCodec, CEGUI::DevILImageCodec, CEGUI::FreeImageImageCodec, CEGUI::SILLYImageCodec, and CEGUI::TGAImageCodec.
Referenced by CEGUI::OpenGLTexture::loadFromFile(), and CEGUI::DirectfbTexture::loadFromFile().