 |
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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxprotected 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