Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6783 in orxonox.OLD for branches/network/src/lib


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

network: lenseflare concepts

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  
    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}
  • branches/network/src/lib/graphics/effects/lense_flare.h

    r6782 r6783  
    4242    Light*                   lightSource;        //!< reference to the sun (or primary light source)
    4343    std::vector<Billboard*>  flares;             //!< the flares array
     44
     45    Vector*                  flareVector;        //!< the axis to draw the flares on
    4446};
    4547
Note: See TracChangeset for help on using the changeset viewer.