Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2006, 3:21:13 PM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: renamed fake-billboard to imageplane and created new billboard

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  
    2828#include "state.h"
    2929
    30 #include "render2D/billboard.h"
     30#include "render2D/image_plane.h"
    3131
    3232#include "light.h"
     
    8080LenseFlare::~LenseFlare()
    8181{
    82   std::vector<Billboard*>::iterator it;
     82  std::vector<ImagePlane*>::iterator it;
    8383  for( it = flares.begin(); it != flares.end(); it++)
    8484    delete (*it);
     
    155155  }
    156156
    157   Billboard* bb = new Billboard(NULL);
     157  ImagePlane* bb = new ImagePlane(NULL);
    158158  bb->setTexture(textureName);
    159159  bb->setSize(50, 50);
    160160  this->flares.push_back(bb);
    161   PRINTF(4)("Added a Lenseflare Billboard with texture %s\n", textureName.c_str());
     161  PRINTF(4)("Added a Lenseflare ImagePlane with texture %s\n", textureName.c_str());
    162162
    163163  // the first flare belongs to the light source
     
    178178  float dist = this->frustumPlane.distancePoint(this->lightSource->getAbsCoor());
    179179  PRINTF(0)("dist: %f\n", dist);
    180   std::vector<Billboard*>::const_iterator it;
     180  std::vector<ImagePlane*>::const_iterator it;
    181181    for(it = flares.begin(); it != flares.end(); it++)
    182182      (*it)->setVisibility(visibility);
     
    220220
    221221  // now calculate the new coordinates of the billboards
    222   std::vector<Billboard*>::iterator it;
     222  std::vector<ImagePlane*>::iterator it;
    223223  int i;
    224224  for( it = flares.begin(), i = 0; it != flares.end(); it++, i++)
  • branches/atmospheric_engine/src/lib/graphics/effects/lense_flare.h

    r7316 r7807  
    2020class TiXmlElement;
    2121class Light;
    22 class Billboard;
     22class ImagePlane;
    2323
    2424//! A class that handles LenseFlares. The LenseFlareManager operates on this.
     
    5050    float                    isVisible;          //!< Checks visibility
    5151    Light*                   lightSource;        //!< reference to the sun (or primary light source)
    52     std::vector<Billboard*>  flares;             //!< the flares array
     52    std::vector<ImagePlane*>  flares;             //!< the flares array
    5353
    5454    Vector2D                 flareVector;        //!< the axis to draw the flares on
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc

    r7699 r7807  
    1515#include "lightening_effect.h"
    1616
     17#include "state.h"
    1718#include "util/loading/load_param.h"
    1819#include "util/loading/factory.h"
    19 #include "render2D/billboard.h"
     20#include "render2D/image_plane.h"
    2021
    2122#include "glincl.h"
     
    3132 
    3233 
    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");
    3536  lightening->setSize(50, 50);
    36   lightening->setAbsCoor2D(0,0);
     37  lightening->setAbsCoor2D(10,10);
    3738  lightening->setVisibility(true);
     39 
    3840 
    3941        this->init();
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h

    r7699 r7807  
    1515
    1616
    17 class Billboard;
     17class ImagePlane;
    1818
    1919class LighteningEffect : public WeatherEffect
     
    3333
    3434        private:
    35     Billboard* lightening;
     35    ImagePlane* lightening;
    3636
    3737};
Note: See TracChangeset for help on using the changeset viewer.