Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3785 in orxonox.OLD for orxonox/branches/textEngine/src/animation.h


Ignore:
Timestamp:
Apr 13, 2005, 1:20:46 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: linear works
example shows an indicator of how fast the framerate is.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/animation.h

    r3784 r3785  
    4949class Anim
    5050{
     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
    5157 protected:
    5258  Anim(void);
     
    5763  virtual void tick(float time) = 0;
    5864
    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);
    6365
    6466
    6567  // 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;
    7072
    7173
    7274  // variables
    7375  //  ANIM_FUNCTION animFunc;
    74   float (Anim::*animFunc)(float);
     76  float (Anim::*animFunc)(float) const;
    7577  ANIM_INFINITY preInfinity;
    7678  ANIM_INFINITY postInfinity;
    7779
    7880  bool bHasKeys;
     81
     82  AnimKeyFrame* currentKeyFrame;
     83  AnimKeyFrame* nextKeyFrame;
    7984  tList<AnimKeyFrame>* keyFrameList;
    8085};
Note: See TracChangeset for help on using the changeset viewer.