Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SortModeDistance Class

    Namespace: Stride.Rendering
    Assembly: Stride.Rendering.dll

    Helper class to sort objects based on distance.

    System.Object → SortMode → SortModeDistance
    Derived from SortModeDistance: BackToFrontSortMode FrontToBackSortMode StateChangeSortMode

    public abstract class SortModeDistance : SortMode
    Name Description
    Constructors
    SortModeDistance(Boolean)
    Fields
    distancePosition
    distancePrecision
    statePosition
    statePrecision
    Methods
    ComputeDistance(Single)
    CreateSortKey(Single)
    GenerateSortKey(RenderView, RenderViewStage, SortKey*)
    | Improve this Doc View Source

    Constructors


    SortModeDistance(Boolean)

    protected SortModeDistance(bool reverseDistance)
    Parameters
    Type Name Description
    System.Boolean reverseDistance
    | Improve this Doc View Source

    Fields


    distancePosition

    protected int distancePosition
    Field Value
    Type Description
    System.Int32

    distancePrecision

    protected int distancePrecision
    Field Value
    Type Description
    System.Int32

    statePosition

    protected int statePosition
    Field Value
    Type Description
    System.Int32

    statePrecision

    protected int statePrecision
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Methods


    ComputeDistance(Single)

    public static uint ComputeDistance(float distance)
    Parameters
    Type Name Description
    System.Single distance
    Returns
    Type Description
    System.UInt32

    CreateSortKey(Single)

    public static SortKey CreateSortKey(float distance)
    Parameters
    Type Name Description
    System.Single distance
    Returns
    Type Description
    SortKey

    GenerateSortKey(RenderView, RenderViewStage, SortKey*)

    public override void GenerateSortKey(RenderView renderView, RenderViewStage renderViewStage, SortKey*sortKeys)
    Parameters
    Type Name Description
    RenderView renderView
    RenderViewStage renderViewStage
    SortKey* sortKeys
    Overrides
    SortMode.GenerateSortKey(RenderView, RenderViewStage, SortKey*)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation