Changeset 1268 for code/branches/merge/src/orxonox
- Timestamp:
- May 13, 2008, 10:13:17 PM (17 years ago)
- Location:
- code/branches/merge/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merge/src/orxonox/GraphicsEngine.cc
r1263 r1268 99 99 void GraphicsEngine::destroy() 100 100 { 101 C OUT(4) << "Destroying objects..." << std::endl;101 CCOUT(4) << "Destroying objects..." << std::endl; 102 102 Ogre::WindowEventUtilities::removeWindowEventListener(this->renderWindow_, this); 103 103 if (this->root_) … … 113 113 delete Ogre::LogManager::getSingletonPtr(); 114 114 } 115 C OUT(4) << "Destroying objects done" << std::endl;115 CCOUT(4) << "Destroying objects done" << std::endl; 116 116 } 117 117 … … 139 139 // create a logManager 140 140 Ogre::LogManager *logger; 141 if (Ogre::LogManager::getSingletonPtr() == 0) 142 logger = new Ogre::LogManager(); 143 else 144 logger = Ogre::LogManager::getSingletonPtr(); 141 //if (Ogre::LogManager::getSingletonPtr() == 0) 142 // note: If there's already a logManager, Ogre will complain by a failed assertation. 143 // but that shouldn't happen, since this is the first time to create a logManager.. 144 logger = new Ogre::LogManager(); 145 //else 146 // logger = Ogre::LogManager::getSingletonPtr(); 145 147 CCOUT(4) << "Ogre LogManager created/assigned" << std::endl; 146 148 … … 151 153 else 152 154 myLog = logger->createLog(this->ogreLogfile_, true, false, false); 153 C OUT(4) << "*** GraphicsEngine:Ogre Log created" << std::endl;155 CCOUT(4) << "Ogre Log created" << std::endl; 154 156 155 157 myLog->setLogDetail(Ogre::LL_BOREME); -
code/branches/merge/src/orxonox/Orxonox.cc
r1266 r1268 201 201 void Orxonox::abortRequest() 202 202 { 203 COUT(3) << " ***Orxonox: Abort requested." << std::endl;203 COUT(3) << "Orxonox: Abort requested." << std::endl; 204 204 bAbort_ = true; 205 205 } … … 246 246 return false; 247 247 248 COUT(3) << "*** Orxonox: Mode is " << mode << "." << std::endl;249 248 if (mode == "client") 250 249 mode_ = CLIENT; … … 252 251 mode_ = SERVER; 253 252 else 253 { 254 mode = "standalone"; 254 255 mode_ = STANDALONE; 256 } 257 COUT(3) << "Orxonox: Mode is " << mode << "." << std::endl; 255 258 256 259 //if (mode_ == DEDICATED) … … 343 346 344 347 // Load the HUD 345 COUT(3) << " ***Orxonox: Loading HUD..." << std::endl;348 COUT(3) << "Orxonox: Loading HUD..." << std::endl; 346 349 Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2"); 347 350 orxonoxHUD_ = new HUD(); … … 350 353 hudOverlay->show(); 351 354 352 COUT(3) << " ***Orxonox: Loading Console..." << std::endl;355 COUT(3) << "Orxonox: Loading Console..." << std::endl; 353 356 InputBuffer* ib = dynamic_cast<InputBuffer*>(InputManager::getKeyHandler("buffer")); 354 357 /* … … 445 448 if (Ogre::Root::getSingletonPtr() == 0) 446 449 { 447 COUT(2) << " ***Orxonox Error: Could not start rendering. No Ogre root object found" << std::endl;450 COUT(2) << "Orxonox Error: Could not start rendering. No Ogre root object found" << std::endl; 448 451 return false; 449 452 } … … 466 469 timer_->reset(); 467 470 468 COUT(3) << " ***Orxonox: Starting the main loop." << std::endl;471 COUT(3) << "Orxonox: Starting the main loop." << std::endl; 469 472 while (!bAbort_) 470 473 {
Note: See TracChangeset
for help on using the changeset viewer.