Class Sprite2DNode
- Namespace
- HelixToolkit.SharpDX.Model.Scene
- Assembly
- HelixToolkit.SharpDX.dll
public class Sprite2DNode : SceneNode, IDisposable, IComparable<SceneNode>, IAnimationNode
- Inheritance
-
Sprite2DNode
- Implements
- Inherited Members
- Extension Methods
Properties
IndexCount
public int IndexCount { get; set; }
Property Value
Indices
public int[]? Indices { get; set; }
Property Value
- int[]
ProjectionMatrix
public Matrix4x4 ProjectionMatrix { get; set; }
Property Value
SpriteCount
public int SpriteCount { get; set; }
Property Value
Sprites
public SpriteStruct[]? Sprites { get; set; }
Property Value
Texture
public TextureModel? Texture { get; set; }
Property Value
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.
CanRender(RenderContext)
protected override bool CanRender(RenderContext context)
Parameters
contextRenderContext
Returns
OnAttached()
Called when [attached] and IsAttached = true.
protected override void OnAttached()
OnCreateRenderCore()
Called when [create render core].
protected override RenderCore OnCreateRenderCore()
Returns
OnDetach()
Used to override Detach
protected override void OnDetach()
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.