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

Method destroyScene

UnitTests/UnitTest_GraphView/DemoKeeper.cpp:104–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 void DemoKeeper::destroyScene()
105 {
106 MyGUI::Gui::getInstance().eventFrameStart -= MyGUI::newDelegate(this, &DemoKeeper::notifyFrameStarted);
107
108 for (auto& mNode : mNodes)
109 {
110 animation::IAnimationNode* anim_node = mNode->getAnimationNode();
111 delete anim_node;
112 delete mNode;
113 }
114 mNodes.clear();
115
116 delete mFileDialog;
117 mFileDialog = nullptr;
118
119 delete mGraphView;
120 mGraphView = nullptr;
121
122 delete mGraph;
123 mGraph = nullptr;
124
125 delete mContextMenu;
126 mContextMenu = nullptr;
127
128 tools::DialogManager::getInstance().shutdown();
129 delete tools::DialogManager::getInstancePtr();
130 }
131
132 void DemoKeeper::notifyMenuCtrlAccept(wraps::ContextMenu* _sender, std::string_view _id)
133 {

Callers

nothing calls this directly

Calls 5

newDelegateFunction · 0.85
getInstancePtrFunction · 0.85
getAnimationNodeMethod · 0.80
clearMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected