 |
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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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