Table of Contents

Class PostEffectMeshXRayCore

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public class PostEffectMeshXRayCore : RenderCore, IDisposable, IGUID, IThrowingShadow, IPostEffectMeshXRay, IPostEffect
Inheritance
PostEffectMeshXRayCore
Implements
Inherited Members

Constructors

PostEffectMeshXRayCore()

Initializes a new instance of the PostEffectMeshXRayCore class.

public PostEffectMeshXRayCore()

Properties

Color

Gets or sets the color of the border.

public Color4 Color { get; set; }

Property Value

Color4

The color of the border.

EffectName

Gets or sets the name of the effect.

public string EffectName { get; set; }

Property Value

string

The name of the effect.

EnableDoublePass

Gets or sets a value indicating whether [double pass]. Double pass uses stencil buffer to reduce overlapping artifacts

public bool EnableDoublePass { get; set; }

Property Value

bool

true if [double pass]; otherwise, false.

OutlineFadingFactor

Outline fading

public float OutlineFadingFactor { get; set; }

Property Value

float

Methods

OnAttach(IRenderTechnique?)

During attatching render core. Create all local resources. Use Collect(resource) to let object be released automatically during Detach().

protected override bool OnAttach(IRenderTechnique? technique)

Parameters

technique IRenderTechnique

Returns

bool

OnDetach()

On detaching, default is to release all resources

protected override void OnDetach()

OnUpdateCanRenderFlag()

Called when [update can render flag].

protected override bool OnUpdateCanRenderFlag()

Returns

bool

Render(RenderContext, DeviceContextProxy)

Called when [render].

public override void Render(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.