Crazy Eddie's GUI System
${CEGUI_VERSION}
|
ImageCodec object that loads data via image loading facilities in Ogre. More...
Public Member Functions | |
OgreImageCodec () | |
Constructor. | |
void | setImageFileDataType (const String &type) |
Set the file-type identifier that will be used for future load operations. More... | |
const String & | getImageFileDataType () const |
Return the string descibing the currently set file type. | |
Texture * | load (const RawDataContainer &data, Texture *result) |
Load an image from a memory buffer. More... | |
OgreImageCodec () | |
Constructor. | |
void | setImageFileDataType (const String &type) |
Set the file-type identifier that will be used for future load operations. More... | |
const String & | getImageFileDataType () const |
Return the string descibing the currently set file type. | |
Texture * | load (const RawDataContainer &data, Texture *result) |
Load an image from a memory buffer. More... | |
![]() | |
virtual | ~ImageCodec () |
Destructor. | |
const String & | getIdentifierString () const |
Return the name of the image codec object. More... | |
const String & | getSupportedFormat () const |
Return the list of image file format supported. More... | |
virtual | ~ImageCodec () |
Destructor. | |
const String & | getIdentifierString () const |
Return the name of the image codec object. More... | |
const String & | getSupportedFormat () const |
Return the list of image file format supported. More... | |
Protected Attributes | |
String | d_dataTypeID |
Holds currently set file data type specifier (i.e. the file extension). | |
![]() | |
String | d_supportedFormat |
list all image file format supported | |
Additional Inherited Members | |
![]() | |
ImageCodec (const String &name) | |
ImageCodec (const String &name) | |
ImageCodec object that loads data via image loading facilities in Ogre.
|
virtual |
Load an image from a memory buffer.
data | the image data |
result | the texture to use for storing the image data |
Implements CEGUI::ImageCodec.
|
virtual |
Load an image from a memory buffer.
data | the image data |
result | the texture to use for storing the image data |
Implements CEGUI::ImageCodec.
References CEGUI::String::c_str(), d_dataTypeID, CEGUI::OgreTexture::fromOgrePixelFormat(), CEGUI::RawDataContainer::getDataPtr(), CEGUI::RawDataContainer::getSize(), and CEGUI::Texture::loadFromMemory().
void CEGUI::OgreImageCodec::setImageFileDataType | ( | const String & | type | ) |
Set the file-type identifier that will be used for future load operations.
This allows us to pass the type on to Ogre when we process the image data (because it's just file data; we do not have a filename nor file extension). Ogre needs this sometimes in order to correctly select the right codec to use for the final decoding of the data. If this value is not set, loading may still succeed, though that will depend upon the specific libraries and codecs that the Ogre installation has available to it.
type | String object that describes the type of file data that will be passed in subsequent load operations. Note that this type will typically be the file extension (or equivalent). |
void CEGUI::OgreImageCodec::setImageFileDataType | ( | const String & | type | ) |
Set the file-type identifier that will be used for future load operations.
This allows us to pass the type on to Ogre when we process the image data (because it's just file data; we do not have a filename nor file extension). Ogre needs this sometimes in order to correctly select the right codec to use for the final decoding of the data. If this value is not set, loading may still succeed, though that will depend upon the specific libraries and codecs that the Ogre installation has available to it.
type | String object that describes the type of file data that will be passed in subsequent load operations. Note that this type will typically be the file extension (or equivalent). |
References d_dataTypeID.