Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4827 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Jul 9, 2005, 12:48:50 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: state is no more singleton, but static class.
This is faster, and easier to handle, because one can just say State::getBLA() and not State::getInstance()→getBLA(); ——→>> less redundant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/particles/particle_system.cc

    r4762 r4827  
    412412          //! \todo implement a faster code for the look-at Camera algorithm.
    413413
    414         const PNode* camera = State::getInstance()->getCamera();  //!< \todo MUST be different
     414        const PNode* camera = State::getCamera();  //!< \todo MUST be different
    415415        Vector cameraPos = camera->getAbsCoor();
    416         Vector cameraTargetPos = State::getInstance()->getCameraTarget()->getAbsCoor();
     416        Vector cameraTargetPos = State::getCameraTarget()->getAbsCoor();
    417417        Vector view = cameraTargetPos - cameraPos;
    418418        Vector up = Vector(0, 1, 0);
Note: See TracChangeset for help on using the changeset viewer.