Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6786 in orxonox.OLD for branches/network/src/lib/graphics/effects


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

network: compiles again

Location:
branches/network/src/lib/graphics/effects
Files:
2 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();
  • branches/network/src/lib/graphics/effects/lense_flare.h

    r6785 r6786  
    1111#include <vector>
    1212
     13#include "vector.h"
    1314
    1415class TiXmlElement;
     
    4445    std::vector<Billboard*>  flares;             //!< the flares array
    4546
    46     Vector*                  flareVector;        //!< the axis to draw the flares on
    47     Vector*                  screenCenter;       //!< the vector marking the center of the screen
     47    Vector                   flareVector;        //!< the axis to draw the flares on
     48    Vector                   screenCenter;       //!< the vector marking the center of the screen
    4849};
    4950
Note: See TracChangeset for help on using the changeset viewer.