 |
ModelNodeDisposeWithMaterial Method |
DisposeWithMaterial disposes this SceneNode and also disposes the
Material and
BackMaterial
even if the materials were created by the user and then set to the
Material or
BackMaterial properties.
(in this case the standard Dispose method does not dispose the materials).
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void DisposeWithMaterial(
bool disposeTexture = true
)
Parameters
- 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.ModelNode.DisposeWithMaterial(System.Boolean)"]
See Also