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
Location:
code/branches/gui/src/orxonox
Files:
2 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
  • code/branches/gui/src/orxonox/GraphicsEngine.h

    r1641 r1652  
    4747#include "core/OrxonoxClass.h"
    4848
    49 
    5049namespace orxonox
    5150{
     
    6261        void setup();
    6362        void declareRessourceLocations();
    64         bool loadRenderer();
     63        void loadRenderer();
    6564        bool initialiseResources();
    6665        bool createNewScene();
Note: See TracChangeset for help on using the changeset viewer.