Om
1.0.0
A universal framework for multimedia simulation
|
A class that reads and writes textures. More...
#include <omGraphicsTextureTranscoder.h>
Public Member Functions | |
TextureTranscoder (const images::ImageFormat &imageFormat) | |
Create a new texture transcoder that loads the specified image type. More... | |
virtual const ResourceFormat & | getResourceFormat () const |
Return an object that represents the resource format that this transcoder can read and write. More... | |
virtual Bool | canEncode (const Texture &texture) const |
Return whether or not this texture transcoder is able to encode the specified resource. More... | |
virtual Bool | encode (const ResourceID &identifier, const Texture &texture, const ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0)) |
Encode the specified texture to the file at the specified path. More... | |
virtual Bool | canDecode (const ResourceID &identifier) const |
Return whether or not the specified identifier refers to a valid OBJ file for this transcoder. More... | |
virtual Texture * | decode (ResourceID &identifier, ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0)) |
Decode the texture file at the specified path and return a pointer to the decoded texture. More... | |
Public Member Functions inherited from om::resources::ResourceTypeTranscoder< DataType > | |
virtual const ResourceType & | getResourceType () const |
Return an object that represents the resource type that this transcoder can read and write. More... | |
virtual Bool | canEncode (const DataType &resource) const =0 |
Return whether or not this transcoder is able to encode the specified resource. More... | |
virtual Bool | encode (const ResourceID &identifier, const DataType &resource, const ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0))=0 |
Save the specified resource object at the specified ID location. More... | |
Public Member Functions inherited from om::resources::ResourceTranscoder | |
virtual | ~ResourceTranscoder () |
Destroy a resource transcoder and release all of its resources. More... | |
A class that reads and writes textures.
om::graphics::io::TextureTranscoder::TextureTranscoder | ( | const images::ImageFormat & | imageFormat | ) |
Create a new texture transcoder that loads the specified image type.
|
virtual |
Return an object that represents the resource format that this transcoder can read and write.
Implements om::resources::ResourceTranscoder.
|
virtual |
Return whether or not this texture transcoder is able to encode the specified resource.
|
virtual |
Encode the specified texture to the file at the specified path.
If the method fails, FALSE is returned.
|
virtual |
Return whether or not the specified identifier refers to a valid OBJ file for this transcoder.
Implements om::resources::ResourceTranscoder.
|
virtual |
Decode the texture file at the specified path and return a pointer to the decoded texture.
If the method fails, a NULL pointer is returned.
Implements om::resources::ResourceTypeTranscoder< DataType >.