40 #ifndef _uitextureatlashandler_cpp
41 #define _uitextureatlashandler_cpp
43 #include "UI/textureatlashandler.h"
44 #include "UI/textureatlas.h"
71 AtlasDoc.
Load(AtlasStream);
74 if( !RootNode.
Empty() )
81 AtlasIterator AtIt = Atlases.find( NewAtlas->
GetName() );
82 if( AtIt != Atlases.end() )
87 Atlases[NewAtlas->
GetName()] = NewAtlas;
90 MEZZ_EXCEPTION(
Exception::INVALID_STATE_EXCEPTION,
"Mezzanine Texture Atlas file \"" + Name +
"\"does not contain expected \"Atlases\" root node. File is not valid and cannot be parsed.");
96 AtlasIterator It = Atlases.find(AtlasName);
97 if(It != Atlases.end())
return (*It).second;