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

Method initialise

MyGUIEngine/src/MyGUI_LayerManager.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 void LayerManager::initialise()
30 {
31 MYGUI_ASSERT(!mIsInitialise, getClassTypeName() << " initialised twice");
32 MYGUI_LOG(Info, "* Initialise: " << getClassTypeName());
33
34 WidgetManager::getInstance().registerUnlinker(this);
35 ResourceManager::getInstance().registerLoadXmlDelegate(mCategoryName) = newDelegate(this, &LayerManager::_load);
36
37 FactoryManager::getInstance().registerFactory<SharedLayer>(mCategoryName);
38 FactoryManager::getInstance().registerFactory<OverlappedLayer>(mCategoryName);
39
40 MYGUI_LOG(Info, getClassTypeName() << " successfully initialized");
41 mIsInitialise = true;
42 }
43
44 void LayerManager::shutdown()
45 {

Callers

nothing calls this directly

Calls 3

getClassTypeNameFunction · 0.85
newDelegateFunction · 0.85
registerUnlinkerMethod · 0.80

Tested by

no test coverage detected