removing files that should not be in blender2.5, added (by mistake?) r19226
[blender.git] / source / gameengine / Ketsji / KX_MaterialIpoController.h
1 #ifndef __KX_MATERIALIPOCONTROLLER_H__
2 #define __KX_MATERIALIPOCONTROLLER_H__
3
4
5
6 #include "SG_Controller.h"
7 #include "SG_Spatial.h"
8 #include "KX_IInterpolator.h"
9
10 #include "STR_String.h" //typedef dword
11
12 class KX_MaterialIpoController : public SG_Controller
13 {
14 public:
15         MT_Vector4                      m_rgba;
16         MT_Vector3                      m_specrgb;
17         MT_Scalar                       m_hard;
18         MT_Scalar                       m_spec;
19         MT_Scalar                       m_ref;
20         MT_Scalar                       m_emit;
21         MT_Scalar                       m_alpha;
22
23 private:
24         T_InterpolatorList      m_interpolators;
25         bool                            m_modified;
26
27         double                  m_ipotime;
28         dword                           m_matname_hash;
29 public:
30         KX_MaterialIpoController(dword matname_hash) : 
31                                 m_modified(true),
32                                 m_ipotime(0.0),
33                                 m_matname_hash(matname_hash)
34                 {}
35         virtual ~KX_MaterialIpoController();
36         virtual SG_Controller*  GetReplica(class SG_Node* destnode);
37         virtual bool Update(double time);
38         virtual void SetSimulatedTime(double time) {
39                 m_ipotime = time;
40                 m_modified = true;
41         }
42         
43                 void
44         SetOption(
45                 int option,
46                 int value
47         ){
48                 // intentionally empty
49         };
50
51
52         void    AddInterpolator(KX_IInterpolator* interp);
53 };
54
55
56
57
58 #endif//__KX_MATERIALIPOCONTROLLER_H__