Click or drag to resize
AB4D logo

DXSceneHardwareAccelerate3DLines Property

Gets or sets a boolean that specifies if rendering 3D lines is hardware accelerated by DXEngine.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public bool HardwareAccelerate3DLines { get; set; }

Property Value

Boolean
Remarks

HardwareAccelerate3DLines gets or sets a boolean that specifies if rendering 3D lines is hardware accelerated by DXEngine. Default value is true.

When set to false, then 3D lines are rendered by Ab3d.PowerToys or by some other custom engine.

NOTE:
When setting HardwareAccelerate3DLines to false, this must be done before the 3D objects are initialized (after the DXScene was created; when using DXSceneView it is recommended to change the value of this property in DXSceneDeviceCreated event handler). The following examples shows how to do that when using DXViewportView (named MainDXViewportView):

Example
C#
MainDXViewportView.DXSceneDeviceCreated += delegate(object sender, EventArgs args)
{
    // Called after DXScene and DXDevice were initialized and before SceneNodes are created
    if (MainDXViewportView.DXScene != null) // DXScene can be null in case of WPF rendering
        MainDXViewportView.DXScene.HardwareAccelerate3DLines = false;
};
See Also