Changeset 3785 in orxonox.OLD for orxonox/branches/textEngine/src/animation.h
- Timestamp:
- Apr 13, 2005, 1:20:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/animation.h
r3784 r3785 49 49 class Anim 50 50 { 51 public: 52 void addKeyFrame(float value, float duration, ANIM_FUNCTION animFunc = ANIM_LINEAR); 53 void setInfinity(ANIM_INFINITY preInfinity = ANIM_INF_CONSTANT, 54 ANIM_INFINITY postInfinity = ANIM_INF_CONSTANT); 55 void setAnimFunc(ANIM_FUNCTION animFunc); 56 51 57 protected: 52 58 Anim(void); … … 57 63 virtual void tick(float time) = 0; 58 64 59 void addKeyFrame(float value, float duration, ANIM_FUNCTION animFunc = ANIM_LINEAR);60 void setInfinity(ANIM_INFINITY preInfinity = ANIM_INF_CONSTANT,61 ANIM_INFINITY postInfinity = ANIM_INF_CONSTANT);62 void setAnimFunc(ANIM_FUNCTION animFunc);63 65 64 66 65 67 // animation functions 66 float random(float time) ;67 float constant(float time) ;68 float linear(float time) ;69 float sine(float time) ;68 float random(float time) const; 69 float constant(float time) const; 70 float linear(float time) const; 71 float sine(float time) const; 70 72 71 73 72 74 // variables 73 75 // ANIM_FUNCTION animFunc; 74 float (Anim::*animFunc)(float) ;76 float (Anim::*animFunc)(float) const; 75 77 ANIM_INFINITY preInfinity; 76 78 ANIM_INFINITY postInfinity; 77 79 78 80 bool bHasKeys; 81 82 AnimKeyFrame* currentKeyFrame; 83 AnimKeyFrame* nextKeyFrame; 79 84 tList<AnimKeyFrame>* keyFrameList; 80 85 };
Note: See TracChangeset
for help on using the changeset viewer.