Click or drag to resize
AB4D logo

ExtensionsGetUsedDXMaterial 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: 7.0.8865.1045
Syntax
C#
public static Material GetUsedDXMaterial(
	this Material wpfMaterial,
	DXDevice parentDXDevice
)

Parameters

wpfMaterial  Material
WPF material
parentDXDevice  DXDevice
DXDevice that was used to initialize the DXEngine's material

Return Value

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