Changeset 3863 in orxonox.OLD for orxonox/trunk/src/animation.h
- Timestamp:
- Apr 18, 2005, 10:10:26 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/animation.h
r3860 r3863 9 9 #include "list.h" 10 10 #include "base_object.h" 11 #include "confincl.h" // must be here to determin the DEBUG-level 11 12 12 13 // FORWARD DEFINITION 13 14 14 15 //! An enumerator of Functions to describe the flow of the Animation 16 /** 17 \todo check with Patrick it of 18 19 description in speed to the next keyframe: 20 ANIM_CONSTANT: 0, infinity. 21 ANIM_LINEAR: equal 22 ANIM_SINE: fast, slow, fast 23 ANIM_COSINE: slow, fast, slow 24 ANIM_EXP: fast, slow 25 ANIM_NEG_EXP: slow fast 26 ANIM_RANDOM: eratic 27 28 deprecated QUADRATIC 29 */ 15 30 typedef enum ANIM_FUNCTION {ANIM_CONSTANT, 16 31 ANIM_LINEAR, … … 25 40 /** 26 41 ANIM_INF_CONSTANT stays at the end of the animation 27 ANIM_INF_REWIND loops back to the beginning and replays the animation 42 ANIM_INF_REPLAY loops back to the beginning and replays the animation 43 ANIM_INF_REWIND loops back to the beginning and then stops the animation 44 ANIM_INF_DELETE deletes the animation. !! THIS IS DANGEROUS !! only do this with non-class variables 28 45 */ 29 46 typedef enum ANIM_INFINITY {ANIM_INF_CONSTANT, 30 47 ANIM_INF_REPLAY, 48 ANIM_INF_REWIND, 31 49 ANIM_INF_DELETE};//, ANIM_INF_LINEAR, ANIM_INF_PINGPONG; 32 33 //! A Struct for Keyframes that simply hold a float34 typedef struct KeyFrameF35 {36 float duration; //!< duration of this keyframe37 float value; //!< value of this keyframe38 ANIM_FUNCTION animFunc; //!< with whitch function to iterate to the next KeyFrameF39 };40 50 41 51 //! A Superclass for describing an animation (all animations will be derived from this one)
Note: See TracChangeset
for help on using the changeset viewer.