Click or drag to resize
AB4D logo

WpfMaterialGetUsedDXMaterial 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.Materials
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
public static Material GetUsedDXMaterial(
	Material wpfMaterial,
	DXDevice parentDXDevice = null
)

Parameters

wpfMaterial  Material
WPF material
parentDXDevice  DXDevice  (Optional)
DXDevice that was used to generate the dxMaterial

Return Value

Material
created DXEngine's Material or null
See Also