Click or drag to resize
AB4D logo

ExtentionsSetUsedDXMaterial Method (Material, Material, DXDevice)

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
Assembly:  Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 4.2.7697.1045
Syntax
C#
[ObsoleteAttribute("SetUsedDXMaterial method that takes parentDXDevice parameter is obsolete. Please use the SetUsedDXMaterial method without parentDXDevice parameter.")]
public static void SetUsedDXMaterial(
	this Material wpfMaterial,
	Material dxMaterial,
	DXDevice parentDXDevice
)

Parameters

wpfMaterial
Type: System.Windows.Media.Media3DMaterial
WPF Material
dxMaterial
Type: Ab3d.DirectXMaterial
DXEngine's 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