| 65 | } |
| 66 | |
| 67 | Engine::~Engine() { |
| 68 | mIsShuttingDown = true; |
| 69 | |
| 70 | GlobalBatchRenderer::destroySingleton(); |
| 71 | |
| 72 | NinePatchManager::destroySingleton(); |
| 73 | |
| 74 | Scene::SceneManager::destroySingleton(); |
| 75 | |
| 76 | CSS::StyleSheetSpecification::destroySingleton(); |
| 77 | |
| 78 | Doc::SyntaxDefinitionManager::destroySingleton(); |
| 79 | |
| 80 | FontManager::destroySingleton(); |
| 81 | |
| 82 | TextureAtlasManager::destroySingleton(); |
| 83 | |
| 84 | TextureFactory::destroySingleton(); |
| 85 | |
| 86 | Graphics::Renderer::destroySingleton(); |
| 87 | |
| 88 | ShaderProgramManager::destroySingleton(); |
| 89 | |
| 90 | PackManager::destroySingleton(); |
| 91 | |
| 92 | Graphics::Private::FrameBufferManager::destroySingleton(); |
| 93 | |
| 94 | Graphics::Private::VertexBufferManager::destroySingleton(); |
| 95 | |
| 96 | VirtualFileSystem::destroySingleton(); |
| 97 | |
| 98 | #ifdef EE_SSL_SUPPORT |
| 99 | Network::SSL::SSLSocket::end(); |
| 100 | #endif |
| 101 | |
| 102 | Network::Http::Pool::getGlobal().clear(); |
| 103 | |
| 104 | destroy(); |
| 105 | |
| 106 | #if EE_PLATFORM == EE_PLATFORM_ANDROID |
| 107 | eeSAFE_DELETE( mZip ); |
| 108 | #endif |
| 109 | |
| 110 | eeSAFE_DELETE( mPlatformHelper ); |
| 111 | |
| 112 | eeSAFE_DELETE( mDisplayManager ); |
| 113 | |
| 114 | eeSAFE_DELETE( mBackend ); |
| 115 | |
| 116 | RegExCache::destroySingleton(); |
| 117 | |
| 118 | ParserMatcherManager::destroySingleton(); |
| 119 | |
| 120 | Log::destroySingleton(); |
| 121 | |
| 122 | TextLayout::clearLayoutCache(); |
| 123 | } |
| 124 | |