Changeset 926 for code/branches/network/src/orxonox/GraphicsEngine.cc
- Timestamp:
- Mar 26, 2008, 1:44:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/GraphicsEngine.cc
r919 r926 37 37 #include <OgreRenderWindow.h> 38 38 39 #include "core/CoreIncludes.h" 39 40 #include "core/Debug.h" 40 41 #include "GraphicsEngine.h" … … 47 48 GraphicsEngine::GraphicsEngine() 48 49 { 50 RegisterObject(GraphicsEngine); 51 //this->bOverwritePath_ = false; 52 this->setConfigValues(); 49 53 // set to standard values 50 54 this->configPath_ = ""; 51 this->dataPath_ = "";52 55 this->root_ = 0; 53 56 this->scene_ = 0; … … 58 61 GraphicsEngine::~GraphicsEngine() 59 62 { 63 } 64 65 void GraphicsEngine::setConfigValues() 66 { 67 SetConfigValue(dataPath_, dataPath_).description("relative path to media data"); 68 60 69 } 61 70 … … 90 99 } 91 100 92 bool GraphicsEngine::load( )101 bool GraphicsEngine::load(std::string dataPath) 93 102 { 103 // temporary overwrite of dataPath, change ini file for permanent change 104 if( dataPath != "" ) 105 dataPath_ = dataPath; 94 106 loadRessourceLocations(this->dataPath_); 95 107 if (!root_->restoreConfig() && !root_->showConfigDialog()) … … 103 115 this->renderWindow_ = root_->getAutoCreatedWindow(); 104 116 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... 105 118 ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); 106 119 }
Note: See TracChangeset
for help on using the changeset viewer.