Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2008, 1:44:51 PM (16 years ago)
Author:
rgrieder
Message:
File:
1 edited

Legend:

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

    r919 r926  
    3737#include <OgreRenderWindow.h>
    3838
     39#include "core/CoreIncludes.h"
    3940#include "core/Debug.h"
    4041#include "GraphicsEngine.h"
     
    4748  GraphicsEngine::GraphicsEngine()
    4849  {
     50    RegisterObject(GraphicsEngine);
     51    //this->bOverwritePath_ = false;
     52    this->setConfigValues();
    4953    // set to standard values
    5054    this->configPath_ = "";
    51     this->dataPath_ = "";
    5255    this->root_ = 0;
    5356    this->scene_ = 0;
     
    5861  GraphicsEngine::~GraphicsEngine()
    5962  {
     63  }
     64
     65  void GraphicsEngine::setConfigValues()
     66  {
     67    SetConfigValue(dataPath_, dataPath_).description("relative path to media data");
     68
    6069  }
    6170
     
    9099  }
    91100
    92   bool GraphicsEngine::load()
     101  bool GraphicsEngine::load(std::string dataPath)
    93102  {
     103    // temporary overwrite of dataPath, change ini file for permanent change
     104    if( dataPath != "" )
     105      dataPath_ = dataPath;
    94106    loadRessourceLocations(this->dataPath_);
    95107    if (!root_->restoreConfig() && !root_->showConfigDialog())
     
    103115    this->renderWindow_ = root_->getAutoCreatedWindow();
    104116    TextureManager::getSingleton().setDefaultNumMipmaps(5);
     117    //TODO: Do NOT load all the groups, why are we doing that? And do we really do that? initialise != load...
    105118    ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
    106119  }
Note: See TracChangeset for help on using the changeset viewer.