Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2007, 6:11:30 PM (16 years ago)
Author:
bknecht
Message:

should work again, sorry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/graphicsEngine.cc

    r462 r473  
    4646    this->configPath_ = "";
    4747    this->dataPath_ = "";
     48    scene_ = NULL;
    4849  }
    4950
     
    5657  {
    5758    //TODO: Check if file exists (maybe not here)
    58 #ifndef OGRE_STATIC_LIB
     59/*#ifndef OGRE_STATIC_LIB
    5960    root_ = new Root(configPath_ + "plugins.cfg", configPath_ + "ogre.cfg",
    6061                     configPath_ + "Ogre.log");
    61 #endif
     62#else
    6263    root_ = new Root(NULL, configPath_ + "ogre.cfg", configPath_ + "Ogre.log");
     64#endif*/
     65    root_ = new Root();
    6366  }
    6467
    6568  /**
    66    * returns scene manager
     69   * @return scene manager
    6770   */
    6871  SceneManager* GraphicsEngine::getSceneManager()
    6972  {
    7073    if(!scene_)
     74    {
    7175      scene_ = root_->createSceneManager(ST_GENERIC, "Default SceneManager");
     76      std::cout << "created SceneMan: " << scene_ << std::endl;
     77    }
    7278    return scene_;
    7379  }
     
    94100    // Load resource paths from data file using configfile ressource type
    95101    ConfigFile cf;
    96     cf.load(dataPath_ + "resources.cfg");
     102    cf.load(dataPath + "resources.cfg");
    97103
    98104    // Go through all sections & settings in the file
Note: See TracChangeset for help on using the changeset viewer.