xoreos
0.0.5
|
#include <textureatlasfile.h>
Classes | |
struct | AtlasTexture |
Public Member Functions | |
TextureAtlasFile (Common::SeekableReadStream &stream) | |
TextureAtlasFile (Common::UString name) | |
bool | isAtlasTexture (const Common::UString &texture) const |
void | getAtlasTexture (const Common::UString &texture, Common::UString &textureFile, float &x, float &y, float &w, float &h) const |
Private Member Functions | |
void | load (Common::SeekableReadStream &stream) |
Private Attributes | |
std::map< Common::UString, AtlasTexture > | _atlasTextures |
Definition at line 33 of file textureatlasfile.h.
Aurora::TextureAtlasFile::TextureAtlasFile | ( | Common::SeekableReadStream & | stream | ) |
Definition at line 42 of file textureatlasfile.cpp.
References load().
Aurora::TextureAtlasFile::TextureAtlasFile | ( | Common::UString | name | ) |
Definition at line 37 of file textureatlasfile.cpp.
References Aurora::kFileTypeXML, load(), and ResMan.
void Aurora::TextureAtlasFile::getAtlasTexture | ( | const Common::UString & | texture, |
Common::UString & | textureFile, | ||
float & | x, | ||
float & | y, | ||
float & | w, | ||
float & | h | ||
) | const |
Definition at line 50 of file textureatlasfile.cpp.
References _atlasTextures, Common::UString::c_str(), Aurora::TextureAtlasFile::AtlasTexture::h, Aurora::TextureAtlasFile::AtlasTexture::textureFile, Aurora::TextureAtlasFile::AtlasTexture::w, Aurora::TextureAtlasFile::AtlasTexture::x, and Aurora::TextureAtlasFile::AtlasTexture::y.
bool Aurora::TextureAtlasFile::isAtlasTexture | ( | const Common::UString & | texture | ) | const |
Definition at line 46 of file textureatlasfile.cpp.
References _atlasTextures.
|
private |
Definition at line 65 of file textureatlasfile.cpp.
References _atlasTextures, Common::UString::c_str(), Common::UString::end(), Common::UString::erase(), Common::UString::findFirst(), Common::XMLNode::getChildren(), Common::XMLNode::getName(), Common::XMLParser::getRoot(), Aurora::TextureAtlasFile::AtlasTexture::h, Common::parseString(), Common::UString::split(), Aurora::TextureAtlasFile::AtlasTexture::textureFile, Aurora::TextureAtlasFile::AtlasTexture::w, Aurora::TextureAtlasFile::AtlasTexture::x, and Aurora::TextureAtlasFile::AtlasTexture::y.
Referenced by TextureAtlasFile().
|
private |
Definition at line 50 of file textureatlasfile.h.
Referenced by getAtlasTexture(), isAtlasTexture(), and load().