Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 11, 2005, 5:43:37 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: implemented aim

File:
1 edited

Legend:

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

    r4829 r4830  
    186186
    187187  delete WorldInterface::getInstance();
    188   delete this->nullParent;
     188  delete NullParent::getInstance();
    189189  delete this->entities;
     190  State::setWorldEntityList(NULL);
     191
     192
    190193  delete LightManager::getInstance();
    191194  delete TrackManager::getInstance();
     
    194197  TextEngine::getInstance()->flush();
    195198  SoundEngine::getInstance()->flushAllBuffers();
     199  SoundEngine::getInstance()->flushAllSources();
    196200
    197201  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
     
    203207
    204208  ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
     209
     210
     211
     212  crosshair=NULL;
    205213}
    206214
     
    238246  LoadParam<World>(root, "path", this, &World::setPath)
    239247    .describe("The Filename of this World (relative from the data-dir)");
    240 
    241   if (!crosshair)
    242     crosshair = new Crosshair();
    243248}
    244249
     
    273278
    274279  GraphicsEngine::getInstance()->displayFPS(true);
     280
     281  if (!crosshair)
     282    crosshair = new Crosshair();
    275283}
    276284
     
    849857  glCallList (objectList);
    850858
    851   ParticleEngine::getInstance()->draw(); //!< \todo should be dts like in the Trunk;
     859  ParticleEngine::getInstance()->draw();
     860
     861  crosshair->draw();
    852862
    853863  TextEngine::getInstance()->draw();
    854864  LightManager::getInstance()->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes //
    855   crosshair->draw();
    856865}
    857866
Note: See TracChangeset for help on using the changeset viewer.