Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2007, 9:03:23 AM (18 years ago)
Author:
nicolasc
Message:

added a pulsing capability for the billboard ( I need it for the Plasma Projectile)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/effects/billboard.h

    r10433 r10633  
    2626    void colorTexture(const Color col);
    2727
     28    inline void togglePluse () {this->bPulse = !bPulse; };
     29    inline void setPulse () { this->bPulse = true; };
     30    inline void setPulse ( bool state ) {this->bPulse = state; };
     31    inline float getPulse () { return this->bPulse; };
     32
    2833    virtual void tick(float dt);
    2934    virtual void draw() const;
    3035
     36    inline void setUpdateFunction(float (*updateFct)(float value)) { if( updateFct)  this->updatePulse = updateFct;};
     37
    3138  private:
     39
     40    float (*updatePulse)(float value);
     41
    3242    Material*        material;
    3343    Color*           texColor;
    3444    float sizeX;
    3545    float sizeY;
     46
     47    bool bPulse;
     48    float pulseMagnitude;
     49    float angle;
     50    float angularSpeed;
    3651};
    3752
Note: See TracChangeset for help on using the changeset viewer.