3 #include "MyGUI_LayerItem.h"
5 #include "MyGUI_Enumerator.h"
6 #include "MyGUI_FactoryManager.h"
7 #include "MyGUI_RenderManager.h"
9 #include "MyGUI_LayerNode.h"
23 MyGUI::RenderManager::getInstance().destroyTexture(
mTexture);
30 Base::deserialization(_node, _version);
32 MyGUI::xml::ElementEnumerator propert = _node->getElementEnumerator();
33 while (propert.next(
"Property"))
35 const std::string& key = propert->findAttribute(
"key");
36 const std::string& value = propert->findAttribute(
"value");
37 if (key ==
"TextureSize")
39 if (key ==
"TextureName")
48 if (outOfDate || _update)
50 MyGUI::IRenderTarget* target =
mTexture->getRenderTarget();
51 if (target !=
nullptr)
55 for (VectorILayerNode::iterator iter = mChildItems.begin(); iter != mChildItems.end(); ++iter)
56 (*iter)->renderToTarget(target, _update);
73 MyGUI::RenderManager::getInstance().destroyTexture(
mTexture);
79 mTexture = MyGUI::RenderManager::getInstance().createTexture(name);