40 #ifndef _uitextureatlas_h
41 #define _uitextureatlas_h
44 #include "colourvalue.h"
45 #include "uienumerations.h"
59 struct TextureAtlasInternalData;
70 typedef std::map<String,FontData*> FontDataContainer;
71 typedef FontDataContainer::iterator FontDataIterator;
72 typedef FontDataContainer::const_iterator ConstFontDataIterator;
73 typedef std::map<String,Sprite*> SpriteContainer;
74 typedef SpriteContainer::iterator SpriteIterator;
75 typedef SpriteContainer::const_iterator ConstSpriteIterator;
78 FontDataContainer Fonts;
79 SpriteContainer Sprites;
85 void ParseTexture(
XML::Node& AtlasTextureNode);
87 void ParseFonts(
XML::Node& AtlasFontsNode);
95 void ParseSprites(
XML::Node& AtlasSpritesNode);
97 void Create2DMaterial();
99 void Create3DMaterial();
101 Ogre::MaterialPtr GetOrCreate2DMasterMaterial();
103 Ogre::MaterialPtr GetOrCreate3DMasterMaterial();
121 const String& GetName()
const;
132 FontDataContainer& GetFonts();
139 SpriteContainer& GetSprites();
145 Real GetWhitePixelX()
const;
148 Real GetWhitePixelY()
const;
151 Vector2 GetTextureSize()
const;
154 Real GetInvTextureCoordsX()
const;
157 Real GetInvTextureCoordsY()
const;
165 Ogre::MaterialPtr _GetOrCreate2DMaterial();
169 Ogre::MaterialPtr _GetOrCreate3DMaterial();
173 Ogre::TexturePtr _GetTexture();
177 Ogre::Pass* _Get2DPass()
const;
181 Ogre::Pass* _Get3DPass()
const;