Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2008, 8:45:31 PM (16 years ago)
Author:
rgrieder
Message:
  • clean up in OrxonoxPlatform.h
  • that's it
File:
1 edited

Legend:

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

    r1651 r1652  
    267267    }
    268268
    269     bool GraphicsEngine::loadRenderer()
     269    void GraphicsEngine::loadRenderer()
    270270    {
    271271        CCOUT(4) << "Configuring Renderer" << std::endl;
     
    286286        if (!root_->restoreConfig())
    287287            if (!root_->showConfigDialog())
    288                 return false;
     288                ThrowException(InitialisationFailed, "Could not show Ogre configuration dialogue.");
    289289
    290290        CCOUT(4) << "Creating render window" << std::endl;
    291         try
    292         {
    293             this->renderWindow_ = root_->initialise(true, "OrxonoxV2");
    294         }
    295         catch (std::exception& ex)
    296         {
    297             COUT(2) << "Error: There was an exception when initialising Ogre Root." << std::endl;
    298                         COUT(1) << ex.what() << std::endl;
    299             return false;
    300         }
    301 
    302         if (!root_->isInitialised())
    303         {
    304             CCOUT(2) << "Error: Initialising Ogre root object failed." << std::endl;
    305             return false;
    306         }
     291
     292        this->renderWindow_ = root_->initialise(true, "OrxonoxV2");
     293
    307294        Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, this);
     295
    308296        //Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(5);
    309297
    310         // create a full screen viewport
     298        // create a full screen default viewport
    311299        this->viewport_ = this->renderWindow_->addViewport(0, 0);
    312 
    313         return true;
    314300    }
    315301
Note: See TracChangeset for help on using the changeset viewer.