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
Location:
code/trunk/src/orxonox/tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/tools/BillboardSet.cc

    r790 r1032  
    3232#include <OgreSceneManager.h>
    3333
    34 #include "../Orxonox.h"
     34#include "GraphicsEngine.h"
    3535#include "util/Math.h"
    3636
     
    5050        std::ostringstream name;
    5151        name << (BillboardSet::billboardSetCounter_s++);
    52         this->billboardSet_ = Orxonox::getSingleton()->getSceneManager()->createBillboardSet("Billboard" + name.str(), count);
     52        this->billboardSet_ = GraphicsEngine::getSingleton().getSceneManager()->createBillboardSet("Billboard" + name.str(), count);
    5353        this->billboardSet_->createBillboard(position, colour);
    5454        this->billboardSet_->setMaterialName(file);
     
    5858    {
    5959        if (this->billboardSet_)
    60             Orxonox::getSingleton()->getSceneManager()->destroyBillboardSet(this->billboardSet_);
     60            GraphicsEngine::getSingleton().getSceneManager()->destroyBillboardSet(this->billboardSet_);
    6161    }
    6262}
  • code/trunk/src/orxonox/tools/Light.cc

    r790 r1032  
    55#include <OgreSceneManager.h>
    66
    7 #include "../Orxonox.h"
     7#include "GraphicsEngine.h"
    88
    99#include "Light.h"
     
    2222        std::ostringstream name;
    2323        name << (Light::lightCounter_s++);
    24         this->light_ = Orxonox::getSingleton()->getSceneManager()->createLight("Light" + name.str());
     24        this->light_ = GraphicsEngine::getSingleton().getSceneManager()->createLight("Light" + name.str());
    2525        this->light_->setType(type);
    2626        this->light_->setDiffuseColour(diffuse);
     
    3131    {
    3232        if (this->light_)
    33             Orxonox::getSingleton()->getSceneManager()->destroyLight(this->light_);
     33            GraphicsEngine::getSingleton().getSceneManager()->destroyLight(this->light_);
    3434    }
    3535}
  • code/trunk/src/orxonox/tools/Mesh.cc

    r790 r1032  
    3232#include <OgreSceneManager.h>
    3333
    34 #include "../Orxonox.h"
     34#include "GraphicsEngine.h"
    3535
    3636#include "Mesh.h"
     
    4949        std::ostringstream name;
    5050        name << (Mesh::meshCounter_s++);
    51         this->entity_ = Orxonox::getSingleton()->getSceneManager()->createEntity("Mesh" + name.str(), file);
     51        this->entity_ = GraphicsEngine::getSingleton().getSceneManager()->createEntity("Mesh" + name.str(), file);
    5252    }
    5353
     
    5555    {
    5656        if (this->entity_)
    57             Orxonox::getSingleton()->getSceneManager()->destroyEntity(this->entity_);
     57            GraphicsEngine::getSingleton().getSceneManager()->destroyEntity(this->entity_);
    5858    }
    5959}
Note: See TracChangeset for help on using the changeset viewer.