Changeset 3979 in orxonox.OLD for orxonox/trunk/src/util/animation
- Timestamp:
- Apr 26, 2005, 2:24:50 AM (20 years ago)
- Location:
- orxonox/trunk/src/util/animation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation.h
r3978 r3979 39 39 ANIM_RANDOM, 40 40 ANIM_NULL}; 41 #define ANIM_DEFAULT_FUNCTION ANIM_LINEAR //!< A default function to choose from the above set 41 42 42 43 //! An enumerator describing what the animation should do after the last keyframe. -
orxonox/trunk/src/util/animation/animation3d.cc
r3978 r3979 91 91 duration = 1.0; 92 92 // if the Rotation-Animation-function is set ANIM_NULL, animFuncRot will match animFuncRot 93 if (animFuncMov == ANIM_NULL) 94 animFuncMov = ANIM_DEFAULT_FUNCTION; 93 95 if (animFuncRot == ANIM_NULL) 94 96 animFuncRot = animFuncMov; -
orxonox/trunk/src/util/animation/animation3d.h
r3978 r3979 35 35 virtual void rewind(void); 36 36 37 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFuncMov = ANIM_ LINEAR, ANIM_FUNCTION animFuncRot = ANIM_NULL);37 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFuncMov = ANIM_DEFAULT_FUNCTION, ANIM_FUNCTION animFuncRot = ANIM_NULL); 38 38 // void addKeyFrame(KeyFrame3D* frame); 39 39 -
orxonox/trunk/src/util/animation/t_animation.h
r3968 r3979 43 43 void setFuncToAnim(T* object, void (T::*funcToAnim)(float)); 44 44 45 void addKeyFrame(float value, float duration, ANIM_FUNCTION animFunc = ANIM_ LINEAR);45 void addKeyFrame(float value, float duration, ANIM_FUNCTION animFunc = ANIM_DEFAULT_FUNCTION); 46 46 47 47 virtual void rewind(); … … 154 154 if (duration <= 0.0) 155 155 duration = 1.0; 156 if (animFunc == ANIM_NULL) 157 animFunc = ANIM_DEFAULT_FUNCTION; 156 158 157 159 KeyFrameF* tmpKeyFrame;
Note: See TracChangeset
for help on using the changeset viewer.