Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7699 in orxonox.OLD for branches/atmospheric_engine/src/lib


Ignore:
Timestamp:
May 18, 2006, 4:39:02 PM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: starting lightening implementation

Location:
branches/atmospheric_engine/src/lib/graphics/effects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc

    r7679 r7699  
    1717#include "util/loading/load_param.h"
    1818#include "util/loading/factory.h"
     19#include "render2D/billboard.h"
    1920
    2021#include "glincl.h"
     
    2829{
    2930        this->setClassID(CL_LIGHTENING_EFFECT, "LighteningEffect");
    30 
     31 
     32 
     33  lightening = new Billboard(NULL);
     34  lightening->setTexture("pictures/lense_flare/lens2.png");
     35  lightening->setSize(50, 50);
     36  lightening->setAbsCoor2D(0,0);
     37  lightening->setVisibility(true);
     38 
    3139        this->init();
    3240
     
    4048{
    4149        this->deactivate();
     50  delete lightening;
    4251}
    4352
     
    5665bool LighteningEffect::activate()
    5766{
    58         PRINTF(0)( "Activating LighteningEffect" );
     67        PRINTF(0)( "Activating LighteningEffect\n" );
    5968
    6069}
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h

    r7679 r7699  
    1414#include "sound_source.h"
    1515
     16
     17class Billboard;
    1618
    1719class LighteningEffect : public WeatherEffect
     
    3133
    3234        private:
     35    Billboard* lightening;
    3336
    3437};
Note: See TracChangeset for help on using the changeset viewer.