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

@@ -66,36 +66,6 @@ void NzDeferredRenderQueue::AddLight(const NzLight* light)
m_forwardQueue->AddLight(light);
}
void NzDeferredRenderQueue::AddModel(const NzModel* model)
{
#if NAZARA_GRAPHICS_SAFE
if (!model)
{
NazaraError("Invalid model");
return;
}
if (!model->IsDrawable())
{
NazaraError("Model is not drawable");
return;
}
#endif
const NzMatrix4f& transformMatrix = model->GetTransformMatrix();
NzMesh* mesh = model->GetMesh();
unsigned int submeshCount = mesh->GetSubMeshCount();
for (unsigned int i = 0; i < submeshCount; ++i)
{
NzSubMesh* subMesh = mesh->GetSubMesh(i);
NzMaterial* material = model->GetMaterial(subMesh->GetMaterialIndex());
AddSubMesh(material, subMesh, transformMatrix);
}
}
void NzDeferredRenderQueue::AddSprite(const NzSprite* sprite)
{
#if NAZARA_GRAPHICS_SAFE