Removed [*]RenderQueue::AddModel
Former-commit-id: 74b3e2b59b7a2ced16edca8dd7027dd8ae1db861
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user