Reverted incorrect merge (missing files)
[blender.git] / source / gameengine / Physics / Sumo / include / interpolator.h
1 #ifndef INTERPOLATOR_H
2 #define INTERPOLATOR_H
3
4 #include "solid_types.h"
5
6 #ifdef __cplusplus
7 extern "C" { 
8 #endif
9
10 DT_DECLARE_HANDLE(IP_IpoHandle);
11
12 typedef struct IP_ControlPoint {
13         DT_Scalar m_key;
14         DT_Scalar m_keyValue;
15 } IP_ControlPoint;
16
17 IP_IpoHandle IP_CreateLinear(const IP_ControlPoint *cpoints, int num_cpoints);
18
19 void         IP_DeleteInterpolator(IP_IpoHandle ipo);
20
21 DT_Scalar IP_GetValue(IP_IpoHandle ipo, DT_Scalar key);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif