MCPcopy Create free account
hub / github.com/MyGUI/mygui / deserialization

Method deserialization

UnitTests/UnitTest_Layers/MyGUI_RTTLayer.cpp:27–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 void RTTLayer::deserialization(xml::ElementPtr _node, Version _version)
28 {
29 Base::deserialization(_node, _version);
30
31 MyGUI::xml::ElementEnumerator propert = _node->getElementEnumerator();
32 while (propert.next("Property"))
33 {
34 std::string_view key = propert->findAttribute("key");
35 std::string_view value = propert->findAttribute("value");
36 if (key == "TextureSize")
37 setTextureSize(utility::parseValue<IntSize>(value));
38#ifdef MYGUI_OGRE_PLATFORM
39 else if (key == "Entity")
40 setEntity(value);
41 else if (key == "Material")
42 setMaterial(value);
43 else if (key == "SceneManager")
44 setSceneManager(value);
45 else if (key == "Camera")
46 setCamera(value);
47#endif
48 }
49 }
50
51 void RTTLayer::renderToTarget(IRenderTarget* _target, bool _update)
52 {

Callers

nothing calls this directly

Calls 4

getElementEnumeratorMethod · 0.80
findAttributeMethod · 0.80
deserializationFunction · 0.50
nextMethod · 0.45

Tested by

no test coverage detected