- Timestamp:
- Jul 31, 2011, 5:15:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/GraphicsManager.cc
r8805 r8806 191 191 void GraphicsManager::loadOgreRoot() 192 192 { 193 COUT(3) << "Setting up Ogre..." << std::endl;193 orxout(internal_info) << "Setting up Ogre..." << endl; 194 194 195 195 if (ogreConfigFile_.empty()) 196 196 { 197 COUT(2) << "Warning: Ogre config file set to \"\". Defaulting to config.cfg" << std::endl;197 orxout(internal_warning) << "Ogre config file set to \"\". Defaulting to config.cfg" << endl; 198 198 ModifyConfigValue(ogreConfigFile_, tset, "config.cfg"); 199 199 } 200 200 if (ogreLogFile_.empty()) 201 201 { 202 COUT(2) << "Warning: Ogre log file set to \"\". Defaulting to ogre.log" << std::endl;202 orxout(internal_warning) << "Ogre log file set to \"\". Defaulting to ogre.log" << endl; 203 203 ModifyConfigValue(ogreLogFile_, tset, "ogre.log"); 204 204 } … … 210 210 // Ogre::Root will detect that we've already created a Log 211 211 ogreLogger_ = new Ogre::LogManager(); 212 COUT(4) << "Ogre LogManager created" << std::endl;212 orxout(internal_info) << "Ogre LogManager created" << endl; 213 213 214 214 // create our own log that we can listen to 215 215 Ogre::Log *myLog; 216 216 myLog = ogreLogger_->createLog(ogreLogFilepath.string(), true, false, false); 217 COUT(4) << "Ogre Log created" << std::endl;217 orxout(internal_info) << "Ogre Log created" << endl; 218 218 219 219 myLog->setLogDetail(Ogre::LL_BOREME); 220 220 myLog->addListener(this); 221 221 222 COUT(4) << "Creating Ogre Root..." << std::endl;222 orxout(internal_info) << "Creating Ogre Root..." << endl; 223 223 224 224 // check for config file existence because Ogre displays (caught) exceptions if not … … 234 234 ogreRoot_ = new Ogre::Root("", ogreConfigFilepath.string(), ogreLogFilepath.string()); 235 235 236 COUT(3) << "Ogre set up done." << std::endl;236 orxout(internal_info) << "Ogre set up done." << endl; 237 237 } 238 238 … … 271 271 void GraphicsManager::loadRenderer() 272 272 { 273 CCOUT(4) << "Configuring Renderer" << std::endl;273 orxout(internal_info) << "GraphicsManager: Configuring Renderer" << endl; 274 274 275 275 bool updatedConfig = Core::getInstance().getOgreConfigTimestamp() > Core::getInstance().getLastLevelTimestamp(); 276 276 if (updatedConfig) 277 COUT(2) << "Ogre config file has changed, but no level was started since then. Displaying config dialogue again to verify the changes." << std::endl;277 orxout(user_info)<< "Ogre config file has changed, but no level was started since then. Displaying config dialogue again to verify the changes." << endl; 278 278 279 279 if (!ogreRoot_->restoreConfig() || updatedConfig) … … 285 285 } 286 286 287 CCOUT(4) << "Creating render window" << std::endl;287 orxout(internal_info) << "Creating render window" << endl; 288 288 289 289 this->renderWindow_ = ogreRoot_->initialise(true, "Orxonox"); … … 311 311 { 312 312 // Load debug overlay to show info about fps and tick time 313 COUT(4) << "Loading Debug Overlay..." << std::endl;313 orxout(internal_info) << "Loading Debug Overlay..." << endl; 314 314 debugOverlay_.reset(new XMLFile("debug.oxo")); 315 315 Loader::open(debugOverlay_.get());
Note: See TracChangeset
for help on using the changeset viewer.