Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2007, 5:33:43 PM (17 years ago)
Author:
snellen
Message:

merged adm, hud, vs-enhancements : beni's responsible for this commit. blame him!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/effects/billboard.h

    r10433 r10698  
    2626    void colorTexture(const Color col);
    2727
     28    //!< Pulsing Capability, changes size of the grid
     29    inline void togglePluse () {this->bPulse = !bPulse; };
     30    inline void setPulse () { this->bPulse = true; };
     31    inline void setPulse ( bool state ) {this->bPulse = state; };
     32    inline float getPulse () { return this->bPulse; };
     33
     34    inline void setPulseMagnitude(float mag) {this->pulseMagnitude = mag; };
     35
    2836    virtual void tick(float dt);
    2937    virtual void draw() const;
    3038
     39    inline void setUpdateFunction(float (*updateFct)(float value)) { if( updateFct)  this->updatePulse = updateFct;};
     40
    3141  private:
     42
     43    float (*updatePulse)(float value);
     44
    3245    Material*        material;
    3346    Color*           texColor;
    3447    float sizeX;
    3548    float sizeY;
     49
     50    bool bPulse;
     51    float pulseMagnitude;
     52    float curMagnitude;
     53    float angle;
     54    float angularSpeed;
    3655};
    3756
Note: See TracChangeset for help on using the changeset viewer.