Changeset 10698 in orxonox.OLD for trunk/src/world_entities/effects/billboard.h
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/billboard.h
r10433 r10698 26 26 void colorTexture(const Color col); 27 27 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 28 36 virtual void tick(float dt); 29 37 virtual void draw() const; 30 38 39 inline void setUpdateFunction(float (*updateFct)(float value)) { if( updateFct) this->updatePulse = updateFct;}; 40 31 41 private: 42 43 float (*updatePulse)(float value); 44 32 45 Material* material; 33 46 Color* texColor; 34 47 float sizeX; 35 48 float sizeY; 49 50 bool bPulse; 51 float pulseMagnitude; 52 float curMagnitude; 53 float angle; 54 float angularSpeed; 36 55 }; 37 56
Note: See TracChangeset
for help on using the changeset viewer.