Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 6, 2016, 4:43:02 PM (8 years ago)
Author:
landauf
Message:

initialize overlay component

File:
1 edited

Legend:

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

    r11085 r11131  
    4040#include <OgreSceneManagerEnumerator.h>
    4141#include <OgreSceneNode.h>
     42#if OGRE_VERSION >= 0x010900
     43#   include <Overlay/OgreOverlaySystem.h>
     44#endif
    4245
    4346#include <BulletCollision/BroadphaseCollision/btAxisSweep3.h>
     
    9093            this->renderQueueListener_ = new RenderQueueListener();
    9194            this->sceneManager_->addRenderQueueListener(this->renderQueueListener_);//add our own renderQueueListener
     95#if OGRE_VERSION >= 0x010900
     96            this->overlaySystem_ = new Ogre::OverlaySystem();
     97            this->sceneManager_->addRenderQueueListener(this->overlaySystem_);
     98#endif
    9299
    93100            this->radar_ = new Radar();
     
    134141            if (GameMode::showsGraphics())
    135142            {
     143#if OGRE_VERSION >= 0x010900
     144                this->sceneManager_->removeRenderQueueListener(this->overlaySystem_);
     145                delete this->overlaySystem_;
     146#endif
    136147                this->sceneManager_->removeRenderQueueListener(this->renderQueueListener_);
    137148                delete this->renderQueueListener_;
Note: See TracChangeset for help on using the changeset viewer.