- Timestamp:
- Jul 30, 2011, 3:55:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/GraphicsManager.cc
r8796 r8798 35 35 #include <boost/filesystem.hpp> 36 36 #include <boost/shared_array.hpp> 37 #include <boost/preprocessor/stringize.hpp>38 37 39 38 #include <OgreFrameListener.h> … … 69 68 namespace orxonox 70 69 { 70 namespace context 71 { 72 namespace 73 { 74 REGISTER_OUTPUT_CONTEXT(ogre); 75 } 76 } 77 71 78 static const std::string __CC_GraphicsManager_group = "GraphicsManager"; 72 79 static const std::string __CC_setScreenResolution_name = "setScreenResolution"; … … 159 166 SetConfigValue(ogreLogFile_, "ogre.log") 160 167 .description("Logfile for messages from Ogre. Use \"\" to suppress log file creation."); 161 SetConfigValue(ogreLogLevelTrivial_ , 5)162 .description("Corresponding orxonox debug level for ogre Trivial");163 SetConfigValue(ogreLogLevelNormal_ , 4)164 .description("Corresponding orxonox debug level for ogre Normal");165 SetConfigValue(ogreLogLevelCritical_, 2)166 .description("Corresponding orxonox debug level for ogre Critical");167 168 } 168 169 … … 410 411 { 411 412 case Ogre::LML_TRIVIAL: 412 orxonoxLevel = this->ogreLogLevelTrivial_;413 orxonoxLevel = level::verbose_more; 413 414 break; 414 415 case Ogre::LML_NORMAL: 415 orxonoxLevel = this->ogreLogLevelNormal_;416 orxonoxLevel = level::verbose; 416 417 break; 417 418 case Ogre::LML_CRITICAL: 418 orxonoxLevel = this->ogreLogLevelCritical_;419 orxonoxLevel = level::internal_warning; 419 420 break; 420 421 default: … … 423 424 introduction = "Ogre: "; 424 425 } 425 #pragma message(__FILE__ "("BOOST_PP_STRINGIZE(__LINE__)") : Warning: TODO: use correct level, also for config values (and remove boost include)") 426 orxout( debug_output, context::ogre) << "ogre (level: " << lml << "): "<< introduction << message << endl;426 427 orxout(orxonoxLevel, context::ogre) << introduction << message << endl; 427 428 } 428 429
Note: See TracChangeset
for help on using the changeset viewer.