diff options
author | Hans Lambermont <hans@lambermont.dyndns.org> | 2002-10-12 15:37:38 +0400 |
---|---|---|
committer | Hans Lambermont <hans@lambermont.dyndns.org> | 2002-10-12 15:37:38 +0400 |
commit | 12315f4d0e0ae993805f141f64cb8c73c5297311 (patch) | |
tree | 59b45827cd8293cfb727758989c7a74b40183974 /source/gameengine/Physics/Sumo/include/interpolator.h |
Initial revisionv2.25
Diffstat (limited to 'source/gameengine/Physics/Sumo/include/interpolator.h')
-rw-r--r-- | source/gameengine/Physics/Sumo/include/interpolator.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source/gameengine/Physics/Sumo/include/interpolator.h b/source/gameengine/Physics/Sumo/include/interpolator.h new file mode 100644 index 00000000000..055c242edc7 --- /dev/null +++ b/source/gameengine/Physics/Sumo/include/interpolator.h @@ -0,0 +1,27 @@ +#ifndef INTERPOLATOR_H +#define INTERPOLATOR_H + +#include "solid_types.h" + +#ifdef __cplusplus +extern "C" { +#endif + +DT_DECLARE_HANDLE(IP_IpoHandle); + +typedef struct IP_ControlPoint { + DT_Scalar m_key; + DT_Scalar m_keyValue; +} IP_ControlPoint; + +IP_IpoHandle IP_CreateLinear(const IP_ControlPoint *cpoints, int num_cpoints); + +void IP_DeleteInterpolator(IP_IpoHandle ipo); + +DT_Scalar IP_GetValue(IP_IpoHandle ipo, DT_Scalar key); + +#ifdef __cplusplus +} +#endif + +#endif |