Mercurial > fife-parpg
diff engine/core/controller/engine.h @ 144:d2f1e81fbe2c
* Fixed a scons issue, where libraries checked for C instead of C++
* Fixed a shutdown order problem - deleting a GLImage will reference the RenderBackend, thus image pools must be deleted first.
* Added an explicit Engine.destroy method to force the shutdown, in case python fails to do so. Necessary - see above.
* The Pool::printStatistics now gives out information how many resources are loaded. Called before destruction. Add 'pool' to the LogModules to check memory pooling issues.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 09 Oct 2008 06:18:36 +0000 |
parents | 90005975cdbb |
children | a9c4b895ed02 |
line wrap: on
line diff
--- a/engine/core/controller/engine.h Tue Oct 07 02:12:57 2008 +0000 +++ b/engine/core/controller/engine.h Thu Oct 09 06:18:36 2008 +0000 @@ -82,6 +82,10 @@ /** Initializes the engine */ void init(); + + /** Explicit destruction of engine + */ + void destroy(); /** Initializes the continuous processing of the engine * Call this only once in your program @@ -172,7 +176,7 @@ LogManager* m_logmanager; GuiFont* m_defaultfont; Cursor* m_cursor; - + bool m_destroyed; EngineSettings m_settings; };