Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4136 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
May 10, 2005, 12:06:20 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: skyModel now gets unloaded/loaded for real. There was some danger, when loading a model into a WorldEntity not using the resourceManager. so this should not be done anymore.
maybe i will write a fix to the ResourceManager, enabling it, to also load pointers to user-space-defined Variables… we'll see

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4105 r4136  
    197197  cn->reset();
    198198
    199   ResourceManager::getInstance()->debug();
    200   ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    201   ResourceManager::getInstance()->debug();
    202 
    203199  delete WorldInterface::getInstance();
    204200
     
    209205  TextEngine::getInstance()->flush();
    210206
    211   AnimationPlayer::getInstance()->debug();
    212207  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    213208  //delete garbagecollecor
    214209  //delete animator
    215210
    216 
     211  ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    217212}
    218213
     
    844839  this->glmis = new GLMenuImageScreen();
    845840  this->glmis->init();
    846   glmis->setBackgroundImage("pictures/load_screen.jpg");
    847841  this->glmis->setMaximum(8);
    848842  //  this->glmis->draw();
Note: See TracChangeset for help on using the changeset viewer.