- Timestamp:
- Aug 22, 2011, 3:05:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/projectiles/BillboardProjectile.cc
r6502 r8855 27 27 */ 28 28 29 /** 30 @file BillboardProjectile.h 31 @brief Implementation of the BillboardProjectile class. 32 */ 33 29 34 #include "BillboardProjectile.h" 30 35 … … 44 49 { 45 50 assert(this->getScene()->getSceneManager()); // getScene() was already checked by WorldEntity 51 52 // Create the billboard. 46 53 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(0.5f, 0.5f, 0.7f, 0.8f), 1); 47 54 this->attachOgreObject(this->billboard_.getBillboardSet()); … … 57 64 } 58 65 66 /** 67 @brief 68 Set the colour of the BillboardProjectile. 69 @param colour 70 The colour to be set. 71 */ 59 72 void BillboardProjectile::setColour(const ColourValue& colour) 60 73 { … … 62 75 } 63 76 77 /** 78 @brief 79 Set the material of the BillboardProjectile. 80 @param material 81 The material name. 82 */ 64 83 void BillboardProjectile::setMaterial(const std::string& material) 65 84 { … … 67 86 } 68 87 88 /** 89 @brief 90 Is called when the visibility of the BillboardProjectile has changed. 91 */ 69 92 void BillboardProjectile::changedVisibility() 70 93 { 71 94 SUPER(BillboardProjectile, changedVisibility); 72 95 96 // Also change the visibility of the billboard. 73 97 this->billboard_.setVisible(this->isVisible()); 74 98 }
Note: See TracChangeset
for help on using the changeset viewer.