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/libraries/core/Core.h

    r5836 r5850  
    3636#include <boost/scoped_ptr.hpp>
    3737#include "util/OutputHandler.h"
     38#include "util/Scope.h"
    3839#include "util/ScopeGuard.h"
    3940#include "util/Singleton.h"
     
    100101            scoped_ptr<InputManager>      inputManager_;        //!< Interface to OIS
    101102            scoped_ptr<GUIManager>        guiManager_;          //!< Interface to GUI
     103            scoped_ptr<Scope<ScopeID::Root> >     rootScope_;
     104            scoped_ptr<Scope<ScopeID::Graphics> > graphicsScope_;
    102105
    103106            bool                          bGraphicsLoaded_;
Note: See TracChangeset for help on using the changeset viewer.