Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 13, 2008, 10:13:17 PM (17 years ago)
Author:
rgrieder
Message:
  • removed some debug output
Location:
code/branches/merge/src/orxonox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/src/orxonox/GraphicsEngine.cc

    r1263 r1268  
    9999  void GraphicsEngine::destroy()
    100100  {
    101     COUT(4) << "Destroying objects..." << std::endl;
     101    CCOUT(4) << "Destroying objects..." << std::endl;
    102102    Ogre::WindowEventUtilities::removeWindowEventListener(this->renderWindow_, this);
    103103    if (this->root_)
     
    113113      delete Ogre::LogManager::getSingletonPtr();
    114114    }
    115     COUT(4) << "Destroying objects done" << std::endl;
     115    CCOUT(4) << "Destroying objects done" << std::endl;
    116116  }
    117117
     
    139139    // create a logManager
    140140    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();
    145147    CCOUT(4) << "Ogre LogManager created/assigned" << std::endl;
    146148
     
    151153    else
    152154      myLog = logger->createLog(this->ogreLogfile_, true, false, false);
    153     COUT(4) << "*** GraphicsEngine: Ogre Log created" << std::endl;
     155    CCOUT(4) << "Ogre Log created" << std::endl;
    154156
    155157    myLog->setLogDetail(Ogre::LL_BOREME);
  • code/branches/merge/src/orxonox/Orxonox.cc

    r1266 r1268  
    201201  void Orxonox::abortRequest()
    202202  {
    203     COUT(3) << "*** Orxonox: Abort requested." << std::endl;
     203    COUT(3) << "Orxonox: Abort requested." << std::endl;
    204204    bAbort_ = true;
    205205  }
     
    246246      return false;
    247247
    248     COUT(3) << "*** Orxonox: Mode is " << mode << "." << std::endl;
    249248    if (mode == "client")
    250249      mode_ = CLIENT;
     
    252251      mode_ = SERVER;
    253252    else
     253    {
     254      mode = "standalone";
    254255      mode_ = STANDALONE;
     256    }
     257    COUT(3) << "Orxonox: Mode is " << mode << "." << std::endl;
    255258
    256259    //if (mode_ == DEDICATED)
     
    343346
    344347    // Load the HUD
    345     COUT(3) << "*** Orxonox: Loading HUD..." << std::endl;
     348    COUT(3) << "Orxonox: Loading HUD..." << std::endl;
    346349    Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");
    347350    orxonoxHUD_ = new HUD();
     
    350353    hudOverlay->show();
    351354
    352     COUT(3) << "*** Orxonox: Loading Console..." << std::endl;
     355    COUT(3) << "Orxonox: Loading Console..." << std::endl;
    353356    InputBuffer* ib = dynamic_cast<InputBuffer*>(InputManager::getKeyHandler("buffer"));
    354357    /*
     
    445448    if (Ogre::Root::getSingletonPtr() == 0)
    446449    {
    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;
    448451      return false;
    449452    }
     
    466469    timer_->reset();
    467470
    468     COUT(3) << "*** Orxonox: Starting the main loop." << std::endl;
     471    COUT(3) << "Orxonox: Starting the main loop." << std::endl;
    469472          while (!bAbort_)
    470473          {
Note: See TracChangeset for help on using the changeset viewer.