Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6786 in orxonox.OLD


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

network: compiles again

Location:
branches/network/src
Files:
4 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
  • branches/network/src/lib/graphics/graphics_engine.cc

    r6785 r6786  
    615615
    616616  //draw the graphics
     617  list<GraphicsEffect*>::const_iterator it;
    617618  for (it = this->graphicsEffects.begin(); it != this->graphicsEffects.end(); it++)
    618619    (*it)->draw();
  • branches/network/src/world_entities/power_ups/power_up.cc

    r6784 r6786  
    2020#include "extendable.h"
    2121#include "primitive_model.h"
     22
     23#include "assert.h"
    2224
    2325using namespace std;
Note: See TracChangeset for help on using the changeset viewer.