Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2006, 4:01:00 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: lightening effect

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

    r8071 r8077  
    2424
    2525#include "shell_command.h"
     26#include "light.h"
    2627
    2728SHELL_COMMAND(activate, LighteningEffect, activateLightening);
     
    144145  }
    145146}
     147
     148void LighteningEffect::draw() const
     149{
     150  /*if(!this->billboard->isVisible())
     151    return;
     152 
     153  LightManager* lightMan = LightManager::getInstance();
     154 
     155  (new Light())->setAbsCoor(this->billboard->getAbsCoor().x, this->billboard->getAbsCoor().y, this->billboard->getAbsCoor().z);
     156  (new Light())->setDiffuseColor(1,1,1);
     157  LightManager::getInstance()->draw();
     158 
     159  delete lightMan;*/
     160}
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h

    r8071 r8077  
    3030                virtual bool deactivate();
    3131
    32                 virtual void tick(float dt);
     32    virtual void draw() const;
     33    virtual void tick(float dt);
    3334   
    3435    void coord(float x, float y, float z);
Note: See TracChangeset for help on using the changeset viewer.