| 42 | } |
| 43 | |
| 44 | void LayerManager::shutdown() |
| 45 | { |
| 46 | MYGUI_ASSERT(mIsInitialise, getClassTypeName() << " is not initialised"); |
| 47 | MYGUI_LOG(Info, "* Shutdown: " << getClassTypeName()); |
| 48 | |
| 49 | FactoryManager::getInstance().unregisterFactory<SharedLayer>(mCategoryName); |
| 50 | FactoryManager::getInstance().unregisterFactory<OverlappedLayer>(mCategoryName); |
| 51 | |
| 52 | // удаляем все хранители слоев |
| 53 | clear(); |
| 54 | |
| 55 | WidgetManager::getInstance().unregisterUnlinker(this); |
| 56 | ResourceManager::getInstance().unregisterLoadXmlDelegate(mCategoryName); |
| 57 | |
| 58 | MYGUI_LOG(Info, getClassTypeName() << " successfully shutdown"); |
| 59 | mIsInitialise = false; |
| 60 | } |
| 61 | |
| 62 | void LayerManager::clear() |
| 63 | { |
nothing calls this directly
no test coverage detected