Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2008, 4:08:29 PM (17 years ago)
Author:
rgrieder
Message:
  • singletonized GraphicsEngine —> Orxonox.h has to included only twice —> better compile performance —> Everything graphic related can now be accessed with GraphicsEngine::getSingleton()
  • asylumized Fighter (SpaceShip with weapon system integrated)
  • removed weapon system from build
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/SpaceShip.cc

    r1024 r1032  
    4141#include "core/CoreIncludes.h"
    4242#include "core/Debug.h"
    43 #include "Orxonox.h"
     43#include "GraphicsEngine.h"
    4444#include "core/InputManager.h"
    4545#include "particle/ParticleInterface.h"
     
    156156    {
    157157        // START CREATING THRUSTER
    158         this->tt_ = new ParticleInterface(Orxonox::getSingleton()->getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");
     158        this->tt_ = new ParticleInterface(GraphicsEngine::getSingleton().getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");
    159159        this->tt_->getParticleSystem()->setParameter("local_space","true");
    160160        this->tt_->newEmitter();
     
    271271    void SpaceShip::setCamera(const std::string& camera)
    272272    {
    273         Ogre::Camera *cam = Orxonox::getSingleton()->getSceneManager()->createCamera("ShipCam");
     273        Ogre::Camera *cam = GraphicsEngine::getSingleton().getSceneManager()->createCamera("ShipCam");
    274274        this->camNode_ = this->getNode()->createChildSceneNode("CamNode");
    275275/*
     
    286286
    287287        this->camNode_->attachObject(cam);
    288         Orxonox::getSingleton()->getOgrePointer()->getRenderWindow()->addViewport(cam);
     288        GraphicsEngine::getSingleton().getRenderWindow()->addViewport(cam);
    289289    }
    290290
Note: See TracChangeset for help on using the changeset viewer.