MezzanineEngine 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
Mezzanine::UI::TextureAtlasHandler Class Reference

This handles the creation, storage and overall handling of Texture Atlases. More...

#include <textureatlashandler.h>

+ Collaboration diagram for Mezzanine::UI::TextureAtlasHandler:

Public Types

typedef std::map< String,
UI::TextureAtlas * > 
AtlasContainer
 
typedef AtlasContainer::iterator AtlasIterator
 
typedef
AtlasContainer::const_iterator 
ConstAtlasIterator
 

Public Member Functions

 TextureAtlasHandler ()
 Class constructor.
 
 ~TextureAtlasHandler ()
 Class destructor.
 
UI::TextureAtlasGetAtlas (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
 

Detailed Description

This handles the creation, storage and overall handling of Texture Atlases.

Definition at line 56 of file textureatlashandler.h.

Member Function Documentation

UI::TextureAtlas * Mezzanine::UI::TextureAtlasHandler::GetAtlas ( const String AtlasName)

Gets a loaded Atlas being stored in this manager.

Parameters
AtlasNameThe name of the Atlas, which is usually the name of the file without the extension.
Returns
Returns a pointer to the requested Atlas, or NULL if it doesn't exist.

Definition at line 94 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.

Parameters
NameThe name of the file to be loaded.
GroupThe resource group where the MTA file can be found.
Todo:
Fix this when we have a working resource system of our own.

Definition at line 65 of file textureatlashandler.cpp.


The documentation for this class was generated from the following files: