Click or drag to resize
Ab4d.SharpEngine logo

MeshModelNodeDisposeWithMeshAndMaterial Method

DisposeWithMeshAndMaterial first disposes the Mesh object and then calls the DisposeWithMaterial(Boolean) method to dispose the materials and SceneNode.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public void DisposeWithMeshAndMaterial(
	bool disposeMaterial = true,
	bool disposeTexture = true
)

Parameters

disposeMaterial  Boolean  (Optional)
when true (by default) then Material and BackMaterial that are set to this MeshModelNode are disposed (event when they are set by the user and are not created in this MeshModelNode).
disposeTexture  Boolean  (Optional)
when true (by default) and when the material defines a texture (GpuImage), then it is also disposed (if it is not cached by the Scene).
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.MeshModelNode.DisposeWithMeshAndMaterial(System.Boolean,System.Boolean)"]

See Also