Changeset 7807 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/lense_flare.cc
- Timestamp:
- May 24, 2006, 3:21:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/lense_flare.cc
r7316 r7807 28 28 #include "state.h" 29 29 30 #include "render2D/ billboard.h"30 #include "render2D/image_plane.h" 31 31 32 32 #include "light.h" … … 80 80 LenseFlare::~LenseFlare() 81 81 { 82 std::vector< Billboard*>::iterator it;82 std::vector<ImagePlane*>::iterator it; 83 83 for( it = flares.begin(); it != flares.end(); it++) 84 84 delete (*it); … … 155 155 } 156 156 157 Billboard* bb = new Billboard(NULL);157 ImagePlane* bb = new ImagePlane(NULL); 158 158 bb->setTexture(textureName); 159 159 bb->setSize(50, 50); 160 160 this->flares.push_back(bb); 161 PRINTF(4)("Added a Lenseflare Billboardwith texture %s\n", textureName.c_str());161 PRINTF(4)("Added a Lenseflare ImagePlane with texture %s\n", textureName.c_str()); 162 162 163 163 // the first flare belongs to the light source … … 178 178 float dist = this->frustumPlane.distancePoint(this->lightSource->getAbsCoor()); 179 179 PRINTF(0)("dist: %f\n", dist); 180 std::vector< Billboard*>::const_iterator it;180 std::vector<ImagePlane*>::const_iterator it; 181 181 for(it = flares.begin(); it != flares.end(); it++) 182 182 (*it)->setVisibility(visibility); … … 220 220 221 221 // now calculate the new coordinates of the billboards 222 std::vector< Billboard*>::iterator it;222 std::vector<ImagePlane*>::iterator it; 223 223 int i; 224 224 for( it = flares.begin(), i = 0; it != flares.end(); it++, i++)
Note: See TracChangeset
for help on using the changeset viewer.