Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 5, 2008, 9:50:26 PM (16 years ago)
Author:
rgrieder
Message:
  • getInstance is probably more suitable than getSingleton (as x3n has already done so in most of his classes) I changed it in Orxonox and GraphicsEngine. Maybe more to come.
  • Removed derivation from BaseObject in InputState (templates work well too, don't need a factory at all)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/GraphicsEngine.h

    r1652 r1653  
    6262        void declareRessourceLocations();
    6363        void loadRenderer();
    64         bool initialiseResources();
    65         bool createNewScene();
     64        void initialiseResources();
     65        void createNewScene();
    6666
    6767        void setLevelSceneManager(Ogre::SceneManager* sceneMgr) { this->levelSceneManager_ = sceneMgr; }
     
    8787        { return this->detailLevelParticle_; }
    8888
    89         static GraphicsEngine& getSingleton();
    90         static GraphicsEngine* getSingletonPtr() { return singletonRef_s; }
     89        // console commands
     90        static void printScreen();
     91
     92        static GraphicsEngine& getInstance();
     93        static GraphicsEngine* getInstancePtr() { return singletonRef_s; }
    9194
    9295    private:
Note: See TracChangeset for help on using the changeset viewer.