Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3863 in orxonox.OLD for orxonox/trunk/src/animation.h


Ignore:
Timestamp:
Apr 18, 2005, 10:10:26 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: efence compile support, minor changes at animation, and texture has now only support for sdl-image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/animation.h

    r3860 r3863  
    99#include "list.h"
    1010#include "base_object.h"
     11#include "confincl.h"  // must be here to determin the DEBUG-level
    1112
    1213// FORWARD DEFINITION
    1314
    1415//! 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*/
    1530typedef enum ANIM_FUNCTION {ANIM_CONSTANT,
    1631                            ANIM_LINEAR,
     
    2540/**
    2641   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
    2845*/
    2946typedef enum ANIM_INFINITY {ANIM_INF_CONSTANT,
    3047                            ANIM_INF_REPLAY,
     48                            ANIM_INF_REWIND,
    3149                            ANIM_INF_DELETE};//, ANIM_INF_LINEAR, ANIM_INF_PINGPONG;
    32 
    33 //! A Struct for Keyframes that simply hold a float
    34 typedef struct KeyFrameF
    35 {
    36   float duration;             //!< duration of this keyframe
    37   float value;                //!< value of this keyframe
    38   ANIM_FUNCTION animFunc;     //!< with whitch function to iterate to the next KeyFrameF
    39 };
    4050
    4151//! A Superclass for describing an animation (all animations will be derived from this one)
Note: See TracChangeset for help on using the changeset viewer.