Changeset 6783 in orxonox.OLD for branches/network/src/lib/graphics/effects
- Timestamp:
- Jan 26, 2006, 8:02:27 PM (19 years ago)
- Location:
- branches/network/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/effects/lense_flare.cc
r6782 r6783 48 48 */ 49 49 LenseFlare::~LenseFlare() 50 {} 50 { 51 std::vector<Billboard*>::iterator it; 52 for( it = flares.begin(); it != flares.end(); it++) 53 delete (*it); 54 } 51 55 52 56 … … 99 103 * adds a texture flare 100 104 * @param textureName the name of the flare texture 105 * 106 * 1st Flare: Texture of the Sun/Light source itself 107 * 2nd Flare: Texture of the 101 108 */ 102 109 void LenseFlare::addFlare(const char* textureName) … … 104 111 Billboard* bb = new Billboard(NULL); 105 112 bb->setTexture(textureName); 113 this->flares.push_back(bb); 106 114 } 107 115 … … 115 123 return; 116 124 125 117 126 } -
branches/network/src/lib/graphics/effects/lense_flare.h
r6782 r6783 42 42 Light* lightSource; //!< reference to the sun (or primary light source) 43 43 std::vector<Billboard*> flares; //!< the flares array 44 45 Vector* flareVector; //!< the axis to draw the flares on 44 46 }; 45 47
Note: See TracChangeset
for help on using the changeset viewer.