diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-06-17 14:06:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-06-17 14:06:38 +0400 |
commit | c9d1924ea5575ae2a4ce2cc7fd16e63e6ef14d84 (patch) | |
tree | d8ef54a284e14849e45241f8a57529ea653449db /source/gameengine/Ketsji/KX_KetsjiEngine.h | |
parent | 4c391a0c30018917f6173d1200efcb93c02211f5 (diff) |
Use the scenes framerate for ipo and action framerate in the game engine, was hard coded to 25.
Diffstat (limited to 'source/gameengine/Ketsji/KX_KetsjiEngine.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_KetsjiEngine.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.h b/source/gameengine/Ketsji/KX_KetsjiEngine.h index bc2e3864be8..4c09bc3fcd5 100644 --- a/source/gameengine/Ketsji/KX_KetsjiEngine.h +++ b/source/gameengine/Ketsji/KX_KetsjiEngine.h @@ -103,6 +103,7 @@ private: double m_remainingTime; static double m_ticrate; + static double m_anim_framerate; /* for animation playback only - ipo and action */ static double m_suspendedtime; static double m_suspendeddelta; @@ -261,6 +262,15 @@ public: static void SetTicRate(double ticrate); /** + * Gets the framerate for playing animations. (actions and ipos) + */ + static double GetAnimFrameRate(); + /** + * Sets the framerate for playing animations. (actions and ipos) + */ + static void SetAnimFrameRate(double framerate); + + /** * Activates or deactivates timing information display. * @param frameRate Display for frame rate on or off. * @param profile Display for individual components on or off. |