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

Method createScene

UnitTests/UnitTest_GraphView/DemoKeeper.cpp:73–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void DemoKeeper::createScene()
74 {
75 base::BaseDemoManager::createScene();
76 MyGUI::ResourceManager::getInstance().load("FrameworkFonts.xml");
77 MyGUI::ResourceManager::getInstance().load("SplineSkin.xml");
78 MyGUI::ResourceManager::getInstance().load("GraphNodeSkin.xml");
79
80 new tools::DialogManager();
81 tools::DialogManager::getInstance().initialise();
82
83 Ogre::SceneNode* node = getSceneManager()->getRootSceneNode()->createChildSceneNode();
84 Ogre::Entity* entity = getSceneManager()->createEntity("Object", "robot.mesh", MyGuiResourceGroup);
85 node->attachObject(entity);
86 getCameraNode()->setPosition(400, 400, 400);
87
88 mFileDialog = new tools::OpenSaveFileDialog();
89 mFileDialog->eventEndDialog = MyGUI::newDelegate(this, &DemoKeeper::notifyEndDialog);
90
91 mGraph = new animation::AnimationGraph();
92 mGraph->addData("OwnerEntity", Ogre::Any(entity));
93
94 createGrapView();
95
96 mContextMenu = new wraps::ContextMenu("ContextMenu.layout");
97 mContextMenu->eventMenuAccept = MyGUI::newDelegate(this, &DemoKeeper::notifyMenuCtrlAccept);
98
99 MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &DemoKeeper::notifyFrameStarted);
100
101 loadFromFile(getRootMedia() + "/UnitTests/UnitTest_GraphView/TestAnimation.xml");
102 }
103
104 void DemoKeeper::destroyScene()
105 {

Callers

nothing calls this directly

Calls 6

newDelegateFunction · 0.85
AnyFunction · 0.85
addDataMethod · 0.80
loadMethod · 0.45
initialiseMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected