Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_MaterialIpoController.cpp
| Context not available. | |||||
| #include "KX_ScalarInterpolator.h" | #include "KX_ScalarInterpolator.h" | ||||
| #include "KX_GameObject.h" | #include "KX_GameObject.h" | ||||
| #include "RAS_IPolygonMaterial.h" | |||||
| #include "BLI_sys_types.h" // for intptr_t support | #include "BLI_sys_types.h" // for intptr_t support | ||||
| bool KX_MaterialIpoController::Update(double currentTime) | bool KX_MaterialIpoController::Update(double currentTime) | ||||
| Context not available. | |||||
| for (i = m_interpolators.begin(); !(i == m_interpolators.end()); ++i) { | for (i = m_interpolators.begin(); !(i == m_interpolators.end()); ++i) { | ||||
| (*i)->Execute(m_ipotime); | (*i)->Execute(m_ipotime); | ||||
| } | } | ||||
| SG_Spatial* ob = (SG_Spatial*)m_pObject; | |||||
| KX_GameObject* kxgameobj= (KX_GameObject*) ob->GetSGClientObject(); | |||||
| //kxgameobj->SetObjectColor(m_rgba); | m_material->UpdateIPO( | ||||
| kxgameobj->UpdateMaterialData( | |||||
| m_matname_hash, | |||||
| m_rgba, | m_rgba, | ||||
| m_specrgb, | m_specrgb, | ||||
| m_hard, | m_hard, | ||||
| m_spec, | m_spec, | ||||
| m_ref, | m_ref, | ||||
| m_emit, | m_emit, | ||||
| m_alpha | m_ambient, | ||||
| m_alpha, | |||||
| m_specAlpha | |||||
| ); | ); | ||||
| m_modified=false; | m_modified=false; | ||||
| Context not available. | |||||