Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_MaterialIpoController.h
| Context not available. | |||||
| #include "SG_Spatial.h" | #include "SG_Spatial.h" | ||||
| #include "KX_IInterpolator.h" | #include "KX_IInterpolator.h" | ||||
| #include "STR_String.h" //typedef dword | class RAS_IPolyMaterial; | ||||
| class KX_MaterialIpoController : public SG_Controller | class KX_MaterialIpoController : public SG_Controller | ||||
| { | { | ||||
| Context not available. | |||||
| MT_Scalar m_spec; | MT_Scalar m_spec; | ||||
| MT_Scalar m_ref; | MT_Scalar m_ref; | ||||
| MT_Scalar m_emit; | MT_Scalar m_emit; | ||||
| MT_Scalar m_ambient; | |||||
| MT_Scalar m_alpha; | MT_Scalar m_alpha; | ||||
| MT_Scalar m_specAlpha; | |||||
| private: | private: | ||||
| T_InterpolatorList m_interpolators; | T_InterpolatorList m_interpolators; | ||||
| bool m_modified; | bool m_modified; | ||||
| double m_ipotime; | double m_ipotime; | ||||
| dword m_matname_hash; | RAS_IPolyMaterial *m_material; | ||||
| public: | public: | ||||
| KX_MaterialIpoController(dword matname_hash) : | KX_MaterialIpoController(RAS_IPolyMaterial *polymat) : | ||||
| m_modified(true), | m_modified(true), | ||||
| m_ipotime(0.0), | m_ipotime(0.0), | ||||
| m_matname_hash(matname_hash) | m_material(polymat) | ||||
| {} | {} | ||||
| virtual ~KX_MaterialIpoController(); | virtual ~KX_MaterialIpoController(); | ||||
| virtual SG_Controller* GetReplica(class SG_Node* destnode); | virtual SG_Controller* GetReplica(class SG_Node* destnode); | ||||
| Context not available. | |||||