Click or drag to resize
AB4D logo

ExtentionsGetUsedDXMaterial Method

GetUsedDXMaterial method returns a DXEngine's Material that was created from the WPF material (or null if no DXMaterial was created for the WPF material) parentDXDevice is requireed to check if the created DXMeshGeometry3D was created for the same device.

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

Parameters

wpfMaterial
Type: System.Windows.Media.Media3DMaterial
WPF material
parentDXDevice
Type: Ab3d.DirectXDXDevice
DXDevice that was used to initialize the DXEngine's material

Return Value

Type: Material
created DXEngine's Material or null

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