Mercurial > fife-parpg
comparison engine/core/controller/engine.cpp @ 646:07b1cf8e92b5
* Major improvements to fife_math.h and added corresponding Python bindings. Users now have access to FIFE's internal math functions. These functions are recommended to be used by all clients if required. Note: this may cause some problems with certain compilers. I hope this wont have to be reverted. TODO: remove the static constant globals somehow.
* Adopted the new math functions for all subsystems
* Improvements to DeviceCaps. It now detects all possible screen modes.
* User can now select 0 for their bpp and it will attempt to initialize SDL with the current screen bpp.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 13 Oct 2010 20:24:48 +0000 |
parents | edf6dcfe8cd4 |
children | 51bbda7676f0 |
comparison
equal
deleted
inserted
replaced
645:291ba2946c73 | 646:07b1cf8e92b5 |
---|---|
208 uint32_t bpp = m_settings.getBitsPerPixel(); | 208 uint32_t bpp = m_settings.getBitsPerPixel(); |
209 | 209 |
210 m_screenMode = m_devcaps.getNearestScreenMode( | 210 m_screenMode = m_devcaps.getNearestScreenMode( |
211 m_settings.getScreenWidth(), | 211 m_settings.getScreenWidth(), |
212 m_settings.getScreenHeight(), | 212 m_settings.getScreenHeight(), |
213 (bpp ? bpp : 32) , //if it's 0 we use 32 bit as a default | 213 bpp, |
214 rbackend, | 214 rbackend, |
215 m_settings.isFullScreen()); | 215 m_settings.isFullScreen()); |
216 | 216 |
217 FL_LOG(_log, "Creating main screen"); | 217 FL_LOG(_log, "Creating main screen"); |
218 m_renderbackend->createMainScreen( | 218 m_renderbackend->createMainScreen( |
307 | 307 |
308 delete m_timemanager; | 308 delete m_timemanager; |
309 | 309 |
310 TTF_Quit(); | 310 TTF_Quit(); |
311 SDL_Quit(); | 311 SDL_Quit(); |
312 | 312 |
313 #ifdef USE_COCOA | 313 #ifdef USE_COCOA |
314 objc_msgSend(m_autoreleasePool, sel_registerName("release")); | 314 objc_msgSend(m_autoreleasePool, sel_registerName("release")); |
315 #endif | 315 #endif |
316 | 316 |
317 FL_LOG(_log, "================== Engine destructed =================="); | 317 FL_LOG(_log, "================== Engine destructed =================="); |
318 m_destroyed = true; | 318 m_destroyed = true; |
319 //delete m_logmanager; | 319 //delete m_logmanager; |
320 } | 320 } |
321 void Engine::initializePumping() { | 321 void Engine::initializePumping() { |