Click or drag to resize
AB4D logo

WpfMaterialSetUsedDXMaterial(Material, Material, DXDevice) Method

Note: This API is now obsolete.

Sets the specified DXEngine's Material (dxMaterial) to be used when rendering the specified WPF material (wpfMaterial). It will be used when the WPF material will be shown in DXEngine (must be set before the objects are initialized in DXEngine).

Namespace: Ab3d.DirectX.Materials
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
[ObsoleteAttribute("SetUsedDXMaterial method that takes parentDXDevice parameter is obsolete. Please use the SetUsedDXMaterial method without parentDXDevice parameter.")]
public static void SetUsedDXMaterial(
	Material wpfMaterial,
	Material dxMaterial,
	DXDevice parentDXDevice
)

Parameters

wpfMaterial  Material
WPF Material
dxMaterial  Material
DXEngine's Material (if null, then the cached value is cleared)
parentDXDevice  DXDevice
DXDevice that was used to generate the dxMaterial
See Also