This handles the creation, storage and overall handling of Texture Atlases. More...
#include <textureatlashandler.h>
Public Types | |
typedef std::map< String, UI::TextureAtlas * > | AtlasContainer |
Container type for TextureAtlas storage within this class. | |
typedef AtlasContainer::iterator | AtlasIterator |
Iterator type for TextureAtlases being stored within this class. | |
typedef AtlasContainer::const_iterator | ConstAtlasIterator |
Const Iterator type for TextureAtlases being stored within this class. | |
Public Member Functions | |
TextureAtlasHandler () | |
Class constructor. | |
~TextureAtlasHandler () | |
Class destructor. | |
void | DestroyAllAtlases () |
Destroys all loaded texture atlases. | |
void | DestroyAtlas (TextureAtlas *ToBeDestroyed) |
Destroys a loaded texture atlas. More... | |
UI::TextureAtlas * | GetAtlas (const String &AtlasName) |
Gets a loaded Atlas being stored in this manager. More... | |
UI::TextureAtlas * | GetAtlasExcept (const String &AtlasName) |
Gets a loaded Atlas being stored in this manager. More... | |
void | LoadAtlasFromFile (const String &Name, const String &Group="UI") |
Loads a Mezzanine Texture Atlas file for use with UI::Screen's. More... | |
Protected Attributes | |
AtlasContainer | Atlases |
Container storing all currently loaded texture atlases. More... | |
This handles the creation, storage and overall handling of Texture Atlases.
Definition at line 54 of file textureatlashandler.h.
void Mezzanine::UI::TextureAtlasHandler::DestroyAtlas | ( | TextureAtlas * | ToBeDestroyed | ) |
Destroys a loaded texture atlas.
ToBeDestroyed | A pointer to the texture atlas that will be destroyed. |
Definition at line 112 of file textureatlashandler.cpp.
UI::TextureAtlas * Mezzanine::UI::TextureAtlasHandler::GetAtlas | ( | const String & | AtlasName | ) |
Gets a loaded Atlas being stored in this manager.
AtlasName | The name of the Atlas, which is usually the name of the file without the extension. |
Definition at line 92 of file textureatlashandler.cpp.
UI::TextureAtlas * Mezzanine::UI::TextureAtlasHandler::GetAtlasExcept | ( | const String & | AtlasName | ) |
Gets a loaded Atlas being stored in this manager.
AtlasName | The name of the Atlas, which is usually the name of the file without the extension. |
Definition at line 102 of file textureatlashandler.cpp.
void Mezzanine::UI::TextureAtlasHandler::LoadAtlasFromFile | ( | const String & | Name, |
const String & | Group = "UI" |
||
) |
Loads a Mezzanine Texture Atlas file for use with UI::Screen's.
Name | The name of the file to be loaded. |
Group | The resource group where the MTA file can be found. |
Definition at line 63 of file textureatlashandler.cpp.
|
protected |
Container storing all currently loaded texture atlases.
Definition at line 66 of file textureatlashandler.h.