Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 6, 2016, 9:18:13 PM (8 years ago)
Author:
landauf
Message:

fixed overlays with ogre 1.9.
OverlaySystem must be initialized once after ogre-root and connected as listener to every (?) scene manager

Location:
code/branches/ogre1.9/src/orxonox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9/src/orxonox/Scene.cc

    r11131 r11132  
    9494            this->sceneManager_->addRenderQueueListener(this->renderQueueListener_);//add our own renderQueueListener
    9595#if OGRE_VERSION >= 0x010900
    96             this->overlaySystem_ = new Ogre::OverlaySystem();
    97             this->sceneManager_->addRenderQueueListener(this->overlaySystem_);
     96            this->sceneManager_->addRenderQueueListener(GraphicsManager::getInstance().getOverlaySystem());
    9897#endif
    9998
     
    142141            {
    143142#if OGRE_VERSION >= 0x010900
    144                 this->sceneManager_->removeRenderQueueListener(this->overlaySystem_);
    145                 delete this->overlaySystem_;
     143                this->sceneManager_->removeRenderQueueListener(GraphicsManager::getInstance().getOverlaySystem());
    146144#endif
    147145                this->sceneManager_->removeRenderQueueListener(this->renderQueueListener_);
  • code/branches/ogre1.9/src/orxonox/Scene.h

    r11131 r11132  
    111111            Ogre::SceneNode*         rootSceneNode_; //!< This is a pointer to the root node of the Scene tree
    112112            RenderQueueListener*     renderQueueListener_; //!< this is a pointer to the RenderQueueListener we're using for this Scene
    113             Ogre::OverlaySystem*     overlaySystem_;
    114113
    115114            std::string              skybox_; //!< This string holds information about the skybox we're using
Note: See TracChangeset for help on using the changeset viewer.