Click or drag to resize
AB4D logo

ExtentionsClearUsedDXMaterial Method

Clears a cached DXEngine's Material that is used for the WPF material. This means that next time the WPF material will be used a new instance of DXEngine's Material will be created.

Namespace:  Ab3d.DirectX
Assembly:  Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 4.2.7697.1045
Syntax
C#
public static void ClearUsedDXMaterial(
	this Material wpfMaterial,
	DXDevice parentDXDevice
)

Parameters

wpfMaterial
Type: System.Windows.Media.Media3DMaterial
WPF Material
parentDXDevice
Type: Ab3d.DirectXDXDevice
DXDevice that was used to generate the dxMaterial

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Material. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also