Table of Contents

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

int

Indices

public int[]? Indices { get; set; }

Property Value

int[]

ProjectionMatrix

public Matrix4x4 ProjectionMatrix { get; set; }

Property Value

Matrix4x4

SpriteCount

public int SpriteCount { get; set; }

Property Value

int

Sprites

public SpriteStruct[]? Sprites { get; set; }

Property Value

SpriteStruct[]

Texture

public TextureModel? Texture { get; set; }

Property Value

TextureModel

Methods

CanHitTest(HitTestContext?)

Determines whether this instance [can hit test] the specified context.

protected override bool CanHitTest(HitTestContext? context)

Parameters

context HitTestContext

The context.

Returns

bool

true if this instance [can hit test] the specified context; otherwise, false.

CanRender(RenderContext)

protected override bool CanRender(RenderContext context)

Parameters

context RenderContext

Returns

bool

OnAttached()

Called when [attached] and IsAttached = true.

protected override void OnAttached()

OnCreateRenderCore()

Called when [create render core].

protected override RenderCore OnCreateRenderCore()

Returns

RenderCore

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

context HitTestContext

The context.

totalModelMatrix Matrix4x4

The total model matrix.

hits List<HitTestResult>

The hits.

Returns

bool