Changeset 2367 for code/branches/weapon2/src/orxonox/objects
- Timestamp:
- Dec 9, 2008, 6:08:20 PM (16 years ago)
- Location:
- code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/BillboardProjectile.cc
r2272 r2367 33 33 34 34 #include "core/CoreIncludes.h" 35 #include "objects/Scene.h" 35 36 36 37 namespace orxonox … … 42 43 RegisterObject(BillboardProjectile); 43 44 44 this->billboard_.setBillboardSet(this->scenemanager_, "Examples/Flare", ColourValue(1.0, 1.0, 0.5), 1); 45 assert(this->getScene()->getSceneManager()); // getScene() was already checked by WorldEntity 46 47 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(1.0, 1.0, 0.5), 1); 45 48 //this->attachObject(this->billboard_.getBillboardSet()); 46 49 this->scale(0.5); -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/BillboardProjectile.h
r2272 r2367 47 47 virtual void changedVisibility(); 48 48 49 inline Ogre::SceneManager* getSceneManager()50 { return this->scenemanager_; }51 52 49 private: 53 50 BillboardSet billboard_; 54 Ogre::SceneManager* scenemanager_;55 51 }; 56 52 }
Note: See TracChangeset
for help on using the changeset viewer.