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
Properties
Batched
Gets or sets a value indicating whether this MeshRenderCore is batched.
public bool Batched { get; set; }
Property Value
- bool
trueif 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
MaterialVariables
Used to wrap all material resources
public MaterialVariable? MaterialVariables { get; set; }
Property Value
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
trueif [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
descriptionRasterizerStateDescriptionforcebool
Returns
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
contextRenderContextThe context.
deviceContextDeviceContextProxyThe 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
contextRenderContextdeviceContextDeviceContextProxy
OnRenderDepth(RenderContext, DeviceContextProxy, ShaderPass?)
Called when [render depth].
protected override void OnRenderDepth(RenderContext context, DeviceContextProxy deviceContext, ShaderPass? customPass)
Parameters
contextRenderContextThe context.
deviceContextDeviceContextProxyThe device context.
customPassShaderPassCustom depth pass
OnRenderShadow(RenderContext, DeviceContextProxy)
Called when [render shadow].
protected override void OnRenderShadow(RenderContext context, DeviceContextProxy deviceContext)
Parameters
contextRenderContextThe context.
deviceContextDeviceContextProxy
OnUpdateCanRenderFlag()
Called when [update can render flag].
protected override bool OnUpdateCanRenderFlag()
Returns
OnUpdatePerModelStruct(RenderContext)
protected virtual void OnUpdatePerModelStruct(RenderContext context)
Parameters
contextRenderContext