Public Member Functions | |
TextureProcessor (AssetGroup *parent) | |
Constructor. | |
~TextureProcessor () | |
Deconstructor. | |
ITexture * | getTexture (const std::string &fileName) |
Gets the texture with the given filename. | |
bool | reloadAsset (const std::string &fileName) |
Reloads the asset with the given filename. | |
void | reloadAssets () |
Reloads all assets. | |
bool | removeAsset (const std::string &fileName) |
Removes the asset with the given filename. | |
void | removeAssets () |
Removes all assets. | |
Static Public Member Functions | |
static AssetProcessor * | createProcessor (AssetGroup *parent) |
Creates a new TextureProcessor. | |
Protected Member Functions | |
bool | loadAsset (const std::string &fileName) |
Loads the asset with the given filename. | |
void | loadAssets () |
Loads all assets. |
Definition at line 30 of file TextureProcessor.h.
TextureProcessor::TextureProcessor | ( | AssetGroup * | parent | ) |
TextureProcessor::~TextureProcessor | ( | ) |
AssetProcessor * TextureProcessor::createProcessor | ( | AssetGroup * | parent | ) | [static] |
Creates a new TextureProcessor.
Definition at line 222 of file TextureProcessor.cpp.
ITexture * TextureProcessor::getTexture | ( | const std::string & | fileName | ) |
Gets the texture with the given filename.
fileName | Filename of the texture. |
Definition at line 35 of file TextureProcessor.cpp.
bool TextureProcessor::loadAsset | ( | const std::string & | fileName | ) | [protected, virtual] |
Loads the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 46 of file TextureProcessor.cpp.
void TextureProcessor::loadAssets | ( | ) | [protected, virtual] |
Loads all assets.
Reimplemented from AssetProcessor.
Definition at line 88 of file TextureProcessor.cpp.
bool TextureProcessor::reloadAsset | ( | const std::string & | fileName | ) | [virtual] |
Reloads the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 142 of file TextureProcessor.cpp.
void TextureProcessor::reloadAssets | ( | ) | [virtual] |
Reloads all assets.
Reimplemented from AssetProcessor.
Definition at line 155 of file TextureProcessor.cpp.
bool TextureProcessor::removeAsset | ( | const std::string & | fileName | ) | [virtual] |
Removes the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 166 of file TextureProcessor.cpp.
void TextureProcessor::removeAssets | ( | ) | [virtual] |
Removes all assets.
Reimplemented from AssetProcessor.
Definition at line 196 of file TextureProcessor.cpp.