File: KX_MaterialIpoController.h

package info (click to toggle)
blender 2.46%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 68,208 kB
  • ctags: 77,061
  • sloc: ansic: 518,049; cpp: 199,438; python: 67,585; sh: 7,097; makefile: 3,572; perl: 2,082; java: 8
file content (54 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef __KX_MATERIALIPOCONTROLLER_H__
#define __KX_MATERIALIPOCONTROLLER_H__



#include "SG_Controller.h"
#include "SG_Spatial.h"
#include "KX_IInterpolator.h"

class KX_MaterialIpoController : public SG_Controller
{
public:
	MT_Vector4			m_rgba;
	MT_Vector3			m_specrgb;
	MT_Scalar			m_hard;
	MT_Scalar			m_spec;
	MT_Scalar			m_ref;
	MT_Scalar			m_emit;
	MT_Scalar			m_alpha;

private:
	T_InterpolatorList	m_interpolators;
	bool				m_modified;

	double		        m_ipotime;
public:
	KX_MaterialIpoController() : 
				m_modified(true),
				m_ipotime(0.0)
		{}
	virtual ~KX_MaterialIpoController();
	virtual	SG_Controller*	GetReplica(class SG_Node* destnode);
	virtual bool Update(double time);
	virtual void SetSimulatedTime(double time) {
		m_ipotime = time;
		m_modified = true;
	}
	
		void
	SetOption(
		int option,
		int value
	){
		// intentionally empty
	};


	void	AddInterpolator(KX_IInterpolator* interp);
};




#endif//__KX_MATERIALIPOCONTROLLER_H__