CEGUI::ImageCodec Class Reference

Abstract ImageLoader class. An image loader encapsulate the loading of a texture. More...

Inherited by CEGUI::CoronaImageCodec, CEGUI::DevILImageCodec, CEGUI::FreeImageImageCodec, CEGUI::SILLYImageCodec, and CEGUI::TGAImageCodec.

Collaboration diagram for CEGUI::ImageCodec:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~ImageCodec ()
 Destructor.
const StringgetIdentifierString () const
 Return the name of the image codec object.
const StringgetSupportedFormat () const
 Return the list of image file format supported.
virtual Textureload (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


Detailed Description

Abstract ImageLoader class. An image loader encapsulate the loading of a texture.

This class define the loading of an abstract


Member Function Documentation

const String & CEGUI::ImageCodec::getIdentifierString (  )  const

Return the name of the image codec object.

Return the name of the image codec

Returns:
a string containing image codec name

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

Returns:
list of supported image file format separated with space

References d_supportedFormat.

virtual Texture* CEGUI::ImageCodec::load ( const RawDataContainer data,
Texture result 
) [pure virtual]

Load an image from a memory buffer.

Parameters:
data the image data
result the texture to use for storing the image data
Returns:
result on success or 0 if the load failed

Implemented in CEGUI::CoronaImageCodec, CEGUI::DevILImageCodec, CEGUI::FreeImageImageCodec, CEGUI::SILLYImageCodec, and CEGUI::TGAImageCodec.

Referenced by CEGUI::OpenGLTexture::loadFromFile(), and CEGUI::DirectfbTexture::loadFromFile().


Generated on Thu Nov 27 20:34:29 2008 for Crazy Eddies GUI System by  doxygen 1.5.7.1