Changeset 4597 in orxonox.OLD for orxonox/trunk/src/util/animation/animation.h
- Timestamp:
- Jun 11, 2005, 12:55:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation.h
r4485 r4597 1 /*! 1 /*! 2 2 \file animation.h 3 3 A Subclass for all animations in orxonox … … 31 31 deprecated QUADRATIC 32 32 */ 33 typedef enum ANIM_FUNCTION {ANIM_CONSTANT, 34 ANIM_LINEAR, 35 ANIM_SINE, 36 ANIM_COSINE, 37 ANIM_EXP, 38 ANIM_NEG_EXP, 39 ANIM_QUADRATIC, 40 ANIM_RANDOM, 41 ANIM_NULL}; 33 typedef enum ANIM_FUNCTION 34 { 35 ANIM_CONSTANT, 36 ANIM_LINEAR, 37 ANIM_SINE, 38 ANIM_COSINE, 39 ANIM_EXP, 40 ANIM_NEG_EXP, 41 ANIM_QUADRATIC, 42 ANIM_RANDOM, 43 ANIM_NULL 44 }; 45 42 46 #define ANIM_DEFAULT_FUNCTION ANIM_LINEAR //!< A default function to choose from the above set 43 47 … … 49 53 ANIM_INF_DELETE deletes the animation. !! THIS IS DANGEROUS !! only do this with non-class variables 50 54 */ 51 typedef enum ANIM_INFINITY {ANIM_INF_CONSTANT, 52 ANIM_INF_REPLAY, 53 ANIM_INF_REWIND, 54 ANIM_INF_DELETE};//, ANIM_INF_LINEAR, ANIM_INF_PINGPONG; 55 typedef enum ANIM_INFINITY 56 { 57 ANIM_INF_CONSTANT, 58 ANIM_INF_REPLAY, 59 ANIM_INF_REWIND, 60 ANIM_INF_DELETE 61 }; //, ANIM_INF_LINEAR, ANIM_INF_PINGPONG}; 55 62 56 63 //! A Superclass for describing an animation (all animations will be derived from this one) 57 64 /** implement in subclasses: 58 * 65 * 59 66 * De-/Constructor 60 67 * Animation Functions … … 65 72 * virtual rewind, to go to the first Keyframe. (other functions will call this one) 66 73 */ 67 class Animation 74 class Animation : public BaseObject 68 75 { 69 76 public:
Note: See TracChangeset
for help on using the changeset viewer.