comparison engine/core/controller/engine.h @ 642:6e2151325017

* Added the ability to query the current running screen mode * Added a method to detect the closest supported screen mode (not complete yet). If no matching screen modes are detected an exception is thrown. * Small change to the way the screen is initialized. The screen mode now MUST be in the supported screen mode list before the screen will initialize.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 08 Oct 2010 21:22:02 +0000
parents 3094988564d5
children 01acc9fc35ea
comparison
equal deleted inserted replaced
641:52708806f35c 642:6e2151325017
84 */ 84 */
85 EngineSettings& getSettings(); 85 EngineSettings& getSettings();
86 86
87 /** Gets device capabilities 87 /** Gets device capabilities
88 */ 88 */
89 DeviceCaps& getDeviceCaps(); 89 const DeviceCaps& getDeviceCaps() const;
90
91 /** Get current video mode
92 */
93 const ScreenMode& getCurrentScreenMode() const;
90 94
91 /** Initializes the engine 95 /** Initializes the engine
92 */ 96 */
93 void init(); 97 void init();
94 98
183 bool m_destroyed; 187 bool m_destroyed;
184 188
185 EngineSettings m_settings; 189 EngineSettings m_settings;
186 DeviceCaps m_devcaps; 190 DeviceCaps m_devcaps;
187 191
192 ScreenMode m_screenMode;
193
188 std::vector<RendererBase*> m_renderers; 194 std::vector<RendererBase*> m_renderers;
189 195
190 #ifdef USE_COCOA 196 #ifdef USE_COCOA
191 objc_object *m_autoreleasePool; 197 objc_object *m_autoreleasePool;
192 #endif 198 #endif