Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 26, 2006, 8:02:27 PM (20 years ago)
Author:
patrick
Message:

network: lenseflare concepts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/graphics/effects/lense_flare.cc

    r6782 r6783  
    4848 */
    4949LenseFlare::~LenseFlare()
    50 {}
     50{
     51  std::vector<Billboard*>::iterator it;
     52  for( it = flares.begin(); it != flares.end(); it++)
     53    delete (*it);
     54}
    5155
    5256
     
    99103 * adds a texture flare
    100104 * @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
    101108 */
    102109void LenseFlare::addFlare(const char* textureName)
     
    104111  Billboard* bb = new Billboard(NULL);
    105112  bb->setTexture(textureName);
     113  this->flares.push_back(bb);
    106114}
    107115
     
    115123    return;
    116124
     125
    117126}
Note: See TracChangeset for help on using the changeset viewer.