comparison 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
comparison
equal deleted inserted replaced
143:fe7ff4808529 144:d2f1e81fbe2c
80 EngineSettings& getSettings(); 80 EngineSettings& getSettings();
81 81
82 /** Initializes the engine 82 /** Initializes the engine
83 */ 83 */
84 void init(); 84 void init();
85
86 /** Explicit destruction of engine
87 */
88 void destroy();
85 89
86 /** Initializes the continuous processing of the engine 90 /** Initializes the continuous processing of the engine
87 * Call this only once in your program 91 * Call this only once in your program
88 */ 92 */
89 void initializePumping(); 93 void initializePumping();
170 gcn::Graphics* m_gui_graphics; 174 gcn::Graphics* m_gui_graphics;
171 View* m_view; 175 View* m_view;
172 LogManager* m_logmanager; 176 LogManager* m_logmanager;
173 GuiFont* m_defaultfont; 177 GuiFont* m_defaultfont;
174 Cursor* m_cursor; 178 Cursor* m_cursor;
175 179 bool m_destroyed;
176 180
177 EngineSettings m_settings; 181 EngineSettings m_settings;
178 }; 182 };
179 183
180 }//FIFE 184 }//FIFE