Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 1, 2009, 11:44:53 AM (15 years ago)
Author:
rgrieder
Message:

Moved the singleton creation/destruction mess to the Core class by using just two possible Scopes:

  • ScopeID::Root for singletons that may always persists
  • ScopeID::Graphics for singletons that only work when graphics was loaded
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/CameraManager.h

    r5805 r5850  
    4141#include <list>
    4242#include "util/OgreForwardRefs.h"
    43 #include "util/Singleton.h"
     43#include "util/ScopedSingleton.h"
     44#include "core/OrxonoxClass.h"
    4445#include "core/SmartPtr.h"
    4546
    4647namespace orxonox
    4748{
    48     class _OrxonoxExport CameraManager : public Singleton<CameraManager>
     49    class _OrxonoxExport CameraManager : public ScopedSingleton<CameraManager, ScopeID::Graphics>, public OrxonoxClass
    4950    {
    50             friend class Singleton<CameraManager>;
     51            friend class ScopedSingleton<CameraManager, ScopeID::Graphics>;
    5152        public:
    52             CameraManager(Ogre::Viewport* viewport);
     53            CameraManager();
    5354            ~CameraManager();
    5455
Note: See TracChangeset for help on using the changeset viewer.