Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2012, 5:56:57 PM (13 years ago)
Author:
decapitb
Message:

safety checkin

Location:
code/branches/captureTheFlag
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/captureTheFlag

  • code/branches/captureTheFlag/src/orxonox/overlays/OrxonoxOverlay.cc

    r8858 r9232  
    4242#include <OgreTechnique.h>
    4343#include <OgrePass.h>
     44#include <OgreEntity.h>
    4445
    4546#include "util/Convert.h"
     
    8384            "OrxonoxOverlay_background_" + multi_cast<std::string>(hudOverlayCounter_s++)));
    8485        this->overlay_->add2D(this->background_);
     86
     87        overlay3d_ = new Ogre::SceneNode(NULL);
     88        this->overlay_->add3D(overlay3d_);
    8589
    8690        // Get aspect ratio from the render window. Later on, we get informed automatically
     
    448452        tempTx->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, colour);
    449453    }
     454    void OrxonoxOverlay::add3DMesh(Ogre::Entity* entity)
     455    {
     456        this->overlay3d_->attachObject(entity);
     457    }
     458
    450459}
Note: See TracChangeset for help on using the changeset viewer.