Collaboration diagram for Mezzanine::UI::TextureAtlas:Public Types | |
|
typedef FontDataContainer::const_iterator | ConstFontDataIterator |
|
typedef SpriteContainer::const_iterator | ConstSpriteIterator |
|
typedef std::map< String, FontData * > | FontDataContainer |
| typedef FontDataContainer::iterator | FontDataIterator |
|
typedef std::map< String, Sprite * > | SpriteContainer |
| typedef SpriteContainer::iterator | SpriteIterator |
Public Member Functions | |
| TextureAtlas (const String &Name, const UInt32 &Width, const UInt32 &Height) | |
| Proceadural constructor. More... | |
| TextureAtlas (XML::Node &AtlasNode) | |
| XML constructor. More... | |
| ~TextureAtlas () | |
| Class destructor. | |
| Ogre::Pass * | _Get2DPass () const |
| Gets the 2D Material Pass for this TextureAtlas. More... | |
| Ogre::Pass * | _Get3DPass () const |
| Gets the 3D Material Pass for this TextureAtlas. More... | |
| Ogre::MaterialPtr | _GetOrCreate2DMaterial () |
| Gets the 2D Material for this TextureAtlas, creating it also if neccessary. More... | |
| Ogre::MaterialPtr | _GetOrCreate3DMaterial () |
| Gets the 3D Material for this TextureAtlas, creating it also if neccessary. More... | |
| Ogre::TexturePtr | _GetTexture () |
| Gets the texture being used by this Atlas. More... | |
| FontData * | GetFont (const String &FontName) const |
| Gets the set of Glyphs of the specified name. More... | |
| FontDataContainer & | GetFonts () |
| Gets the full listing of all the FontData instances in this TextureAtlas. More... | |
| Real | GetInvTextureCoordsX () const |
| Gets the inverse size of the TextureAtlas on the X size. More... | |
| Real | GetInvTextureCoordsY () const |
| Gets the inverse size of the TextureAtlas on the Y size. More... | |
| const String & | GetName () const |
| Gets the name of this Texture Atlas. More... | |
| Sprite * | GetSprite (const String &Name) const |
| Gets a Sprite by name. More... | |
| SpriteContainer & | GetSprites () |
| Gets the full listing of all the Sprite's in this TextureAtlas. More... | |
| Vector2 | GetTextureSize () const |
| Gets the size of the TextureAtlas. More... | |
| Vector2 | GetWhitePixel () const |
| Gets the location of the WhitePixel on the TextureAtlas. More... | |
| Real | GetWhitePixelX () const |
| Gets the X coordinate for the WhitePixel. More... | |
| Real | GetWhitePixelY () const |
| Gets the Y coordinate for the WhitePixel. More... | |
Protected Member Functions | |
| void | Create2DMaterial () |
| Creates the material to be used by 2D interfaces with this Atlas. | |
| void | Create3DMaterial () |
| Creates the material to be used by 3D interfaces with this Atlas. | |
| Ogre::MaterialPtr | GetOrCreate2DMasterMaterial () |
| Gets or creates the 2D "template" or "master" material that is to be used to copy from for all Atlases. | |
| Ogre::MaterialPtr | GetOrCreate3DMasterMaterial () |
| Gets or creates the 3D "template" or "master" material that is to be used to copy from for all Atlases. | |
| void | ParseFonts (XML::Node &AtlasFontsNode) |
| Parses the data for a font. | |
| void | ParseGlyphs (XML::Node &GlyphsNode, const Vector2 &Offset, FontData *GlyphD) |
| Parses the glyphs section of the Texture Atlas. | |
| void | ParseKernings (XML::Node &KerningsNode, FontData *FontD) |
| Parses the kerning section of the Texture Atlas. | |
| void | ParseSprites (XML::Node &AtlasSpritesNode) |
| Parses the sprites section of the Texture Atlas. | |
| void | ParseTexture (XML::Node &AtlasTextureNode) |
| Parses the texture section of the Texture Atlas. | |
| void | ParseVerticalOffsets (XML::Node &VerticalOffsetsNode, FontData *FontD) |
| Parses the vertical offsets section of the Texture Atlas. | |
Protected Attributes | |
| String | AtlasName |
| FontDataContainer | Fonts |
| Vector2 | InverseTextureSize |
| SpriteContainer | Sprites |
| TextureAtlasInternalData * | TAID |
| Vector2 | WhitePixel |
Definition at line 67 of file textureatlas.h.
| Mezzanine::UI::TextureAtlas::TextureAtlas | ( | const String & | Name, |
| const UInt32 & | Width, | ||
| const UInt32 & | Height | ||
| ) |
Proceadural constructor.
| Name | The name to be given to this Texture Atlas. |
| Width | The width of the desired texture to create for this atlas. |
| Height | The height of the desired texture to create for this atlas. |
Definition at line 86 of file textureatlas.cpp.
| Mezzanine::UI::TextureAtlas::TextureAtlas | ( | XML::Node & | AtlasNode) |
XML constructor.
| AtlasNode | The XML node containing all the information to create and configure this texture atlas. |
Definition at line 97 of file textureatlas.cpp.
| Ogre::Pass * Mezzanine::UI::TextureAtlas::_Get2DPass | ( | ) | const |
Gets the 2D Material Pass for this TextureAtlas.
Definition at line 595 of file textureatlas.cpp.
| Ogre::Pass * Mezzanine::UI::TextureAtlas::_Get3DPass | ( | ) | const |
Gets the 3D Material Pass for this TextureAtlas.
Definition at line 598 of file textureatlas.cpp.
| Ogre::MaterialPtr Mezzanine::UI::TextureAtlas::_GetOrCreate2DMaterial | ( | ) |
Gets the 2D Material for this TextureAtlas, creating it also if neccessary.
Definition at line 576 of file textureatlas.cpp.
| Ogre::MaterialPtr Mezzanine::UI::TextureAtlas::_GetOrCreate3DMaterial | ( | ) |
Gets the 3D Material for this TextureAtlas, creating it also if neccessary.
Definition at line 584 of file textureatlas.cpp.
| Ogre::TexturePtr Mezzanine::UI::TextureAtlas::_GetTexture | ( | ) |
Gets the texture being used by this Atlas.
Definition at line 592 of file textureatlas.cpp.
Gets the set of Glyphs of the specified name.
| Name | The name of the font as specified in the MTA file. |
Definition at line 531 of file textureatlas.cpp.
| TextureAtlas::FontDataContainer & Mezzanine::UI::TextureAtlas::GetFonts | ( | ) |
Gets the full listing of all the FontData instances in this TextureAtlas.
Definition at line 539 of file textureatlas.cpp.
| Real Mezzanine::UI::TextureAtlas::GetInvTextureCoordsX | ( | ) | const |
Gets the inverse size of the TextureAtlas on the X size.
Definition at line 567 of file textureatlas.cpp.
| Real Mezzanine::UI::TextureAtlas::GetInvTextureCoordsY | ( | ) | const |
Gets the inverse size of the TextureAtlas on the Y size.
Definition at line 570 of file textureatlas.cpp.
| const String & Mezzanine::UI::TextureAtlas::GetName | ( | ) | const |
Gets the name of this Texture Atlas.
Definition at line 523 of file textureatlas.cpp.
Gets a Sprite by name.
| Name | The name of the Sprite to get. |
Definition at line 544 of file textureatlas.cpp.
| TextureAtlas::SpriteContainer & Mezzanine::UI::TextureAtlas::GetSprites | ( | ) |
Gets the full listing of all the Sprite's in this TextureAtlas.
Definition at line 552 of file textureatlas.cpp.
| Vector2 Mezzanine::UI::TextureAtlas::GetTextureSize | ( | ) | const |
Gets the size of the TextureAtlas.
Definition at line 564 of file textureatlas.cpp.
| Vector2 Mezzanine::UI::TextureAtlas::GetWhitePixel | ( | ) | const |
Gets the location of the WhitePixel on the TextureAtlas.
Definition at line 555 of file textureatlas.cpp.
| Real Mezzanine::UI::TextureAtlas::GetWhitePixelX | ( | ) | const |
Gets the X coordinate for the WhitePixel.
Definition at line 558 of file textureatlas.cpp.
| Real Mezzanine::UI::TextureAtlas::GetWhitePixelY | ( | ) | const |
Gets the Y coordinate for the WhitePixel.
Definition at line 561 of file textureatlas.cpp.
1.8.4