| 26 | } |
| 27 | |
| 28 | void RTTLayer::deserialization(xml::ElementPtr _node, Version _version) |
| 29 | { |
| 30 | Base::deserialization(_node, _version); |
| 31 | |
| 32 | MyGUI::xml::ElementEnumerator propert = _node->getElementEnumerator(); |
| 33 | while (propert.next("Property")) |
| 34 | { |
| 35 | std::string_view key = propert->findAttribute("key"); |
| 36 | std::string_view value = propert->findAttribute("value"); |
| 37 | if (key == "TextureSize") |
| 38 | setTextureSize(utility::parseValue<IntSize>(value)); |
| 39 | if (key == "TextureName") |
| 40 | setTextureName(value); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | void RTTLayer::renderToTarget(IRenderTarget* _target, bool _update) |
| 45 | { |
nothing calls this directly
no test coverage detected