90 texture = LanguageManager::getInstance().replaceTags(texture);
93 const IntSize& size = texture_utility::getTextureSize(texture);
94 const IntCoord& coord = IntCoord::parse(_node->
findAttribute(
"offset"));
95 mRect = CoordConverter::convertTextureCoord(coord, size);
98 while (prop.next(
"Property"))
100 const std::string& key = prop->findAttribute(
"key");
101 const std::string& value = prop->findAttribute(
"value");
102 if (key ==
"TileH") mTileH = utility::parseBool(value);
103 else if (key ==
"TileV") mTileV = utility::parseBool(value);
104 else if (key ==
"TileSize") mTileSize = IntSize::parse(value);
145 while (prop.
next(
"Property"))
149 if (key ==
"Angle") mAngle = utility::parseFloat(value);
150 if (key ==
"Center") mCenter = IntPoint::parse(value);
156 if (_version >= Version(1, 1))
158 texture = LanguageManager::getInstance().replaceTags(texture);
161 const IntSize& size = texture_utility::getTextureSize(texture);
163 mRect = CoordConverter::convertTextureCoord(coord, size);
const Colour & getColour() const