Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 31, 2011, 5:15:13 PM (14 years ago)
Author:
landauf
Message:

Replaced COUT with orxout in core. Tried to set levels and contexts in a more or less useful way, but not really optimized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/GraphicsManager.cc

    r8805 r8806  
    191191    void GraphicsManager::loadOgreRoot()
    192192    {
    193         COUT(3) << "Setting up Ogre..." << std::endl;
     193        orxout(internal_info) << "Setting up Ogre..." << endl;
    194194
    195195        if (ogreConfigFile_.empty())
    196196        {
    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;
    198198            ModifyConfigValue(ogreConfigFile_, tset, "config.cfg");
    199199        }
    200200        if (ogreLogFile_.empty())
    201201        {
    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;
    203203            ModifyConfigValue(ogreLogFile_, tset, "ogre.log");
    204204        }
     
    210210        // Ogre::Root will detect that we've already created a Log
    211211        ogreLogger_ = new Ogre::LogManager();
    212         COUT(4) << "Ogre LogManager created" << std::endl;
     212        orxout(internal_info) << "Ogre LogManager created" << endl;
    213213
    214214        // create our own log that we can listen to
    215215        Ogre::Log *myLog;
    216216        myLog = ogreLogger_->createLog(ogreLogFilepath.string(), true, false, false);
    217         COUT(4) << "Ogre Log created" << std::endl;
     217        orxout(internal_info) << "Ogre Log created" << endl;
    218218
    219219        myLog->setLogDetail(Ogre::LL_BOREME);
    220220        myLog->addListener(this);
    221221
    222         COUT(4) << "Creating Ogre Root..." << std::endl;
     222        orxout(internal_info) << "Creating Ogre Root..." << endl;
    223223
    224224        // check for config file existence because Ogre displays (caught) exceptions if not
     
    234234        ogreRoot_ = new Ogre::Root("", ogreConfigFilepath.string(), ogreLogFilepath.string());
    235235
    236         COUT(3) << "Ogre set up done." << std::endl;
     236        orxout(internal_info) << "Ogre set up done." << endl;
    237237    }
    238238
     
    271271    void GraphicsManager::loadRenderer()
    272272    {
    273         CCOUT(4) << "Configuring Renderer" << std::endl;
     273        orxout(internal_info) << "GraphicsManager: Configuring Renderer" << endl;
    274274
    275275        bool updatedConfig = Core::getInstance().getOgreConfigTimestamp() > Core::getInstance().getLastLevelTimestamp();
    276276        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;
    278278
    279279        if (!ogreRoot_->restoreConfig() || updatedConfig)
     
    285285        }
    286286
    287         CCOUT(4) << "Creating render window" << std::endl;
     287        orxout(internal_info) << "Creating render window" << endl;
    288288
    289289        this->renderWindow_ = ogreRoot_->initialise(true, "Orxonox");
     
    311311    {
    312312        // 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;
    314314        debugOverlay_.reset(new XMLFile("debug.oxo"));
    315315        Loader::open(debugOverlay_.get());
Note: See TracChangeset for help on using the changeset viewer.