- Timestamp:
- Jan 27, 2006, 10:27:10 AM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/effects/lense_flare.cc
r6785 r6786 25 25 #include "texture.h" 26 26 27 #include "light.h" 28 27 29 #include "render2D/billboard.h" 28 30 … … 41 43 if (root != NULL) 42 44 this->loadParams(root); 43 44 this->flareVector = new Vector();45 this->screenCenter = new Vector();46 45 } 47 46 … … 55 54 for( it = flares.begin(); it != flares.end(); it++) 56 55 delete (*it); 57 58 delete this-flareVector;59 delete this->screenCenter;60 56 } 61 57 … … 127 123 if( this->flares.size() == 1 && this->lightSource != NULL) 128 124 { 129 bb->setBindNode( this->lightSource);125 bb->setBindNode(static_cast<PNode*>(this->lightSource)); 130 126 } 131 127 } … … 150 146 return; 151 147 148 std::vector<Billboard*>::const_iterator it; 152 149 for( it = flares.begin(); it != flares.end(); it++) 153 150 (*it)->draw(); -
branches/network/src/lib/graphics/effects/lense_flare.h
r6785 r6786 11 11 #include <vector> 12 12 13 #include "vector.h" 13 14 14 15 class TiXmlElement; … … 44 45 std::vector<Billboard*> flares; //!< the flares array 45 46 46 Vector *flareVector; //!< the axis to draw the flares on47 Vector *screenCenter; //!< the vector marking the center of the screen47 Vector flareVector; //!< the axis to draw the flares on 48 Vector screenCenter; //!< the vector marking the center of the screen 48 49 }; 49 50 -
branches/network/src/lib/graphics/graphics_engine.cc
r6785 r6786 615 615 616 616 //draw the graphics 617 list<GraphicsEffect*>::const_iterator it; 617 618 for (it = this->graphicsEffects.begin(); it != this->graphicsEffects.end(); it++) 618 619 (*it)->draw(); -
branches/network/src/world_entities/power_ups/power_up.cc
r6784 r6786 20 20 #include "extendable.h" 21 21 #include "primitive_model.h" 22 23 #include "assert.h" 22 24 23 25 using namespace std;
Note: See TracChangeset
for help on using the changeset viewer.