|
LineBaseNodeSetMesh Method |
SetMesh is a protected method that sets the mesh that is used for this SceneNode.
The method disconnects and disposes the previous mesh (if any).
If the new mesh was not yet initialized and if this scene node was, it calls
InitializeDeviceResources method.
The method also sets the
disposeMesh to true - this will dispose the mesh when this SceneNode is disposed.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax protected void SetMesh(
Mesh? mesh,
bool notifyChange = true,
bool clearMeshDirtyFlag = false
)
Parameters
- mesh Mesh
- new mesh (can be null)
- notifyChange Boolean (Optional)
- when true (by default) the method calls NotifyChange with MeshChanged flag
- clearMeshDirtyFlag Boolean (Optional)
- when true (false by default) then calling this method clears the MeshDirty flag
Remarks
SetMesh is a protected method that sets the mesh that is used for this SceneNode.
If the new mesh was not yet initialized and if this scene node was, it calls InitializeDeviceResources method.
The method also sets the disposeMesh to true - this will dispose the mesh when this SceneNode is disposed.
See Also