Table of Contents

Class PostEffectMeshXRayGridCore

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

Constructors

PostEffectMeshXRayGridCore()

Initializes a new instance of the PostEffectMeshXRayGridCore class.

public PostEffectMeshXRayGridCore()

Properties

BlendingFactor

Gets or sets the blending factor for grid and original mesh color blending

public float BlendingFactor { get; set; }

Property Value

float

The blending factor.

Color

Gets or sets the color of the border.

public Color4 Color { get; set; }

Property Value

Color4

The color of the border.

DimmingFactor

Gets or sets the dim factor on original color

public float DimmingFactor { get; set; }

Property Value

float

The dim factor.

EffectName

Gets or sets the name of the effect.

public string EffectName { get; set; }

Property Value

string

The name of the effect.

GridDensity

Gets or sets the grid density.

public int GridDensity { get; set; }

Property Value

int

The grid density.

XRayDrawingPassName

Gets or sets the name of the x ray drawing pass. This is the final pass to draw mesh and grid overlay onto render target

public string XRayDrawingPassName { get; set; }

Property Value

string

The name of the x ray drawing pass.

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.