Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11131


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

initialize overlay component

Location:
code/branches/ogre1.9/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9/src/libraries/util/OgreForwardRefs.h

    r11129 r11131  
    115115    class OverlayElementFactory;
    116116    class OverlayManager;
     117    class OverlaySystem;
    117118    class Particle;
    118119    class ParticleAffector;
  • 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_;
  • code/branches/ogre1.9/src/orxonox/Scene.h

    r11085 r11131  
    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_;
    113114
    114115            std::string              skybox_; //!< This string holds information about the skybox we're using
Note: See TracChangeset for help on using the changeset viewer.