Changeset 7807 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects
- Timestamp:
- May 24, 2006, 3:21:13 PM (19 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 4 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++) -
branches/atmospheric_engine/src/lib/graphics/effects/lense_flare.h
r7316 r7807 20 20 class TiXmlElement; 21 21 class Light; 22 class Billboard;22 class ImagePlane; 23 23 24 24 //! A class that handles LenseFlares. The LenseFlareManager operates on this. … … 50 50 float isVisible; //!< Checks visibility 51 51 Light* lightSource; //!< reference to the sun (or primary light source) 52 std::vector< Billboard*> flares; //!< the flares array52 std::vector<ImagePlane*> flares; //!< the flares array 53 53 54 54 Vector2D flareVector; //!< the axis to draw the flares on -
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc
r7699 r7807 15 15 #include "lightening_effect.h" 16 16 17 #include "state.h" 17 18 #include "util/loading/load_param.h" 18 19 #include "util/loading/factory.h" 19 #include "render2D/ billboard.h"20 #include "render2D/image_plane.h" 20 21 21 22 #include "glincl.h" … … 31 32 32 33 33 lightening = new Billboard(NULL);34 lightening->setTexture(" pictures/lense_flare/lens2.png");34 lightening = new ImagePlane(NULL); 35 lightening->setTexture("maps/lightning_bolt.png"); 35 36 lightening->setSize(50, 50); 36 lightening->setAbsCoor2D( 0,0);37 lightening->setAbsCoor2D(10,10); 37 38 lightening->setVisibility(true); 39 38 40 39 41 this->init(); -
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h
r7699 r7807 15 15 16 16 17 class Billboard;17 class ImagePlane; 18 18 19 19 class LighteningEffect : public WeatherEffect … … 33 33 34 34 private: 35 Billboard* lightening;35 ImagePlane* lightening; 36 36 37 37 };
Note: See TracChangeset
for help on using the changeset viewer.