Table of Contents

Class MeshRenderCore

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public class MeshRenderCore : GeometryRenderCore, IDisposable, IGUID, IThrowingShadow, IGeometryRenderCore, IMeshRenderParams, IInvertNormal, IMaterialRenderParams, IDynamicReflectable
Inheritance
MeshRenderCore
Implements
Derived
Inherited Members

Fields

modelStruct

protected ModelStruct modelStruct

Field Value

ModelStruct

Properties

Batched

Gets or sets a value indicating whether this MeshRenderCore is batched.

public bool Batched { get; set; }

Property Value

bool

true if batched; otherwise, false.

DynamicReflector

Gets or sets the dynamic reflector.

public IDynamicReflector? DynamicReflector { get; set; }

Property Value

IDynamicReflector

The dynamic reflector.

InvertNormal

public bool InvertNormal { get; set; }

Property Value

bool

MaterialVariables

Used to wrap all material resources

public MaterialVariable? MaterialVariables { get; set; }

Property Value

MaterialVariable

RasterStateWireframe

Gets the raster state wireframe.

protected RasterizerStateProxy? RasterStateWireframe { get; }

Property Value

RasterizerStateProxy

The raster state wireframe.

RenderWireframe

Gets or sets a value indicating whether [render wireframe].

public bool RenderWireframe { get; set; }

Property Value

bool

true if [render wireframe]; otherwise, false.

WireframeColor

Gets or sets the color of the wireframe.

public Color4 WireframeColor { get; set; }

Property Value

Color4

The color of the wireframe.

Methods

CreateRasterState(RasterizerStateDescription, bool)

protected override bool CreateRasterState(RasterizerStateDescription description, bool force)

Parameters

description RasterizerStateDescription
force bool

Returns

bool

OnDetach()

On detaching, default is to release all resources

protected override void OnDetach()

OnRender(RenderContext, DeviceContextProxy)

Called when [render].

protected override void OnRender(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.

OnRenderCustom(RenderContext, DeviceContextProxy)

Render function for custom shader pass. Used to do special effects

protected override void OnRenderCustom(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext
deviceContext DeviceContextProxy

OnRenderDepth(RenderContext, DeviceContextProxy, ShaderPass?)

Called when [render depth].

protected override void OnRenderDepth(RenderContext context, DeviceContextProxy deviceContext, ShaderPass? customPass)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.

customPass ShaderPass

Custom depth pass

OnRenderShadow(RenderContext, DeviceContextProxy)

Called when [render shadow].

protected override void OnRenderShadow(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

OnUpdateCanRenderFlag()

Called when [update can render flag].

protected override bool OnUpdateCanRenderFlag()

Returns

bool

OnUpdatePerModelStruct(RenderContext)

protected virtual void OnUpdatePerModelStruct(RenderContext context)

Parameters

context RenderContext