Graphics/InstancedRenderable: Add Clone method
This commit is contained in:
@@ -51,7 +51,6 @@ namespace Nz
|
||||
* \param renderQueue Queue to be added
|
||||
* \param instanceData Data used for this instance
|
||||
*/
|
||||
|
||||
void Model::AddToRenderQueue(AbstractRenderQueue* renderQueue, const InstanceData& instanceData, const Recti& scissorRect) const
|
||||
{
|
||||
unsigned int submeshCount = m_mesh->GetSubMeshCount();
|
||||
@@ -69,6 +68,14 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Clones this model
|
||||
*/
|
||||
std::unique_ptr<InstancedRenderable> Model::Clone() const
|
||||
{
|
||||
return std::make_unique<Model>(*this);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets the material of the named submesh
|
||||
* \return Pointer to the current material
|
||||
|
||||
Reference in New Issue
Block a user