Mesh |
public void UpdateMesh()
UpdateMesh method needs to be called when the Mesh has been recreated or when SubMeshes data has changed (StartIndexLocation, IndexCount and MaterialIndex do not require regeneration of RenderingQueues).
This method updates the RenderableMeshPrimitive that was added to the RenderingQueue.
This call can set the following DirtyFlags on this SceneNode:
- MeshVertexBufferDataChanged when this mesh was already shown and when only vertex buffer is changed - no need to regenerate the RenderingQueues
- MeshIndexBufferDataChanged when this mesh was already shown and when only SubMesh data are changed - no need to regenerate the RenderingQueues
- MeshChanged when RenderingQueues need to be regenerated