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

Method createScene

UnitTests/TestApp/DemoKeeper.cpp:43–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 void DemoKeeper::createScene()
44 {
45 base::BaseDemoManager::createScene();
46 new tools::DataInfoManager();
47 new tools::DataManager();
48 new tools::ActionManager();
49
50 tools::DataInfoManager::getInstance().initialise();
51 tools::DataManager::getInstance().initialise();
52 tools::ActionManager::getInstance().initialise();
53
54 tools::DataInfoManager::getInstance().load("ImageDataInfo.xml");
55
56 mDataListUI = new DataListUI();
57
58 A a;
59 B b;
60
61 b.advise(&a);
62 b.advise(&a);
63
64
65 MyGUI::IndexImage index;
66 index.name = "MyIndex1";
67 index.rate = 0;
68 index.frames.push_back(MyGUI::IntPoint(0, 0));
69
70 MyGUI::GroupImage group;
71 group.name = "MyGroup1";
72 group.texture = "MyTexture1.png";
73 group.size = MyGUI::texture_utility::getTextureSize(group.texture, false);
74 group.indexes.push_back(index);
75
76 const std::string& category = MyGUI::ResourceManager::getInstance().getCategoryName();
77 MyGUI::ResourceImageSet* imageSet =
78 MyGUI::FactoryManager::getInstance().createObject<MyGUI::ResourceImageSet>(category);
79 imageSet->setResourceName("ResourceImageSet_Manual1");
80 imageSet->AddGroupImage(group);
81
82 MyGUI::ResourceManager::getInstance().addResource(imageSet);
83 }
84
85 void DemoKeeper::destroyScene()
86 {

Callers

nothing calls this directly

Calls 7

adviseMethod · 0.80
AddGroupImageMethod · 0.80
addResourceMethod · 0.80
IntPointFunction · 0.50
initialiseMethod · 0.45
loadMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected