| 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 | { |
nothing calls this directly
no test coverage detected