 |
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.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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