Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 27, 2006, 10:27:10 AM (18 years ago)
Author:
patrick
Message:

network: compiles again

File:
1 edited

Legend:

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

    r6785 r6786  
    2525#include "texture.h"
    2626
     27#include "light.h"
     28
    2729#include "render2D/billboard.h"
    2830
     
    4143  if (root != NULL)
    4244    this->loadParams(root);
    43 
    44   this->flareVector = new Vector();
    45   this->screenCenter = new Vector();
    4645}
    4746
     
    5554  for( it = flares.begin(); it != flares.end(); it++)
    5655    delete (*it);
    57 
    58   delete this-flareVector;
    59   delete this->screenCenter;
    6056}
    6157
     
    127123  if( this->flares.size() == 1 && this->lightSource != NULL)
    128124  {
    129     bb->setBindNode(this->lightSource);
     125    bb->setBindNode(static_cast<PNode*>(this->lightSource));
    130126  }
    131127}
     
    150146    return;
    151147
     148  std::vector<Billboard*>::const_iterator it;
    152149  for( it = flares.begin(); it != flares.end(); it++)
    153150    (*it)->draw();
Note: See TracChangeset for help on using the changeset viewer.