Class ContinuousRenderNode
- Namespace
- HelixToolkit.SharpDX.Model.Scene
- Assembly
- HelixToolkit.SharpDX.dll
Use this node to keep update rendering in each frame.
Default behavior for render host is lazy rendering. Only property changes trigger a render inside render loop. However, sometimes user want to keep updating rendering for each frame such as doing shader animation using TimeStamp. Use this node to invalidate rendering and keep render host busy.
public sealed class ContinuousRenderNode : SceneNode, IDisposable, IComparable<SceneNode>, IAnimationNode
- Inheritance
-
ContinuousRenderNode
- Implements
- Inherited Members
- Extension Methods
Methods
CanHitTest(HitTestContext?)
Determines whether this instance [can hit test] the specified context.
protected override bool CanHitTest(HitTestContext? context)
Parameters
contextHitTestContextThe context.
Returns
- bool
trueif this instance [can hit test] the specified context; otherwise,false.
OnCreateRenderCore()
Called when [create render core].
protected override RenderCore OnCreateRenderCore()
Returns
OnHitTest(HitTestContext?, Matrix4x4, ref List<HitTestResult>)
Called when [hit test].
protected override bool OnHitTest(HitTestContext? context, Matrix4x4 totalModelMatrix, ref List<HitTestResult> hits)
Parameters
contextHitTestContextThe context.
totalModelMatrixMatrix4x4The total model matrix.
hitsList<HitTestResult>The hits.