Changeset 473 for code/branches/FICN/src/orxonox/graphicsEngine.cc
- Timestamp:
- Dec 12, 2007, 6:11:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/graphicsEngine.cc
r462 r473 46 46 this->configPath_ = ""; 47 47 this->dataPath_ = ""; 48 scene_ = NULL; 48 49 } 49 50 … … 56 57 { 57 58 //TODO: Check if file exists (maybe not here) 58 #ifndef OGRE_STATIC_LIB59 /*#ifndef OGRE_STATIC_LIB 59 60 root_ = new Root(configPath_ + "plugins.cfg", configPath_ + "ogre.cfg", 60 61 configPath_ + "Ogre.log"); 61 #e ndif62 #else 62 63 root_ = new Root(NULL, configPath_ + "ogre.cfg", configPath_ + "Ogre.log"); 64 #endif*/ 65 root_ = new Root(); 63 66 } 64 67 65 68 /** 66 * returnsscene manager69 * @return scene manager 67 70 */ 68 71 SceneManager* GraphicsEngine::getSceneManager() 69 72 { 70 73 if(!scene_) 74 { 71 75 scene_ = root_->createSceneManager(ST_GENERIC, "Default SceneManager"); 76 std::cout << "created SceneMan: " << scene_ << std::endl; 77 } 72 78 return scene_; 73 79 } … … 94 100 // Load resource paths from data file using configfile ressource type 95 101 ConfigFile cf; 96 cf.load(dataPath _+ "resources.cfg");102 cf.load(dataPath + "resources.cfg"); 97 103 98 104 // Go through all sections & settings in the file
Note: See TracChangeset
for help on using the changeset viewer.