Table of Contents

Class SortModeDistance

Namespace
Stride.Rendering
Assembly
Stride.Rendering.dll

Helper class to sort objects based on distance.

public abstract class SortModeDistance : SortMode
Inheritance
SortModeDistance
Derived

Constructors

SortModeDistance(bool)

protected SortModeDistance(bool reverseDistance)

Parameters

reverseDistance bool

Fields

distancePosition

protected int distancePosition

Field Value

int

distancePrecision

protected int distancePrecision

Field Value

int

statePosition

protected int statePosition

Field Value

int

statePrecision

protected int statePrecision

Field Value

int

Methods

ComputeDistance(float)

public static uint ComputeDistance(float distance)

Parameters

distance float

Returns

uint

CreateSortKey(float)

public static SortKey CreateSortKey(float distance)

Parameters

distance float

Returns

SortKey

GenerateSortKey(RenderView, RenderViewStage, SortKey*)

public override void GenerateSortKey(RenderView renderView, RenderViewStage renderViewStage, SortKey* sortKeys)

Parameters

renderView RenderView
renderViewStage RenderViewStage
sortKeys SortKey*