Removed [*]RenderQueue::AddModel

Former-commit-id: 74b3e2b59b7a2ced16edca8dd7027dd8ae1db861
This commit is contained in:
Lynix
2014-03-14 23:48:10 +01:00
parent 2c3d8ee5f4
commit 0ca2c9ccb2
6 changed files with 18 additions and 72 deletions

View File

@@ -72,7 +72,16 @@ NzModel::~NzModel()
void NzModel::AddToRenderQueue(NzAbstractRenderQueue* renderQueue) const
{
renderQueue->AddModel(this);
const NzMatrix4f& transformMatrix = GetTransformMatrix();
unsigned int submeshCount = m_mesh->GetSubMeshCount();
for (unsigned int i = 0; i < submeshCount; ++i)
{
NzSubMesh* subMesh = m_mesh->GetSubMesh(i);
NzMaterial* material = m_materials[subMesh->GetMaterialIndex()];
renderQueue->AddSubMesh(material, subMesh, transformMatrix);
}
}
void NzModel::AdvanceAnimation(float elapsedTime)