Search Results for

    Show / Hide Table of Contents

    Class DistanceSortingMesh

    Sorting mesh algorithm based on the distance to the camera.

    Inheritance
    object
    SortingMesh
    DistanceSortingMesh
    Namespace: Evergine.Framework.Graphics.Sorting
    Assembly: Evergine.Framework.dll
    Syntax
    public class DistanceSortingMesh : SortingMesh

    Methods

    EncodeDistance(float)

    Encode the float distance into a unsigned integer.

    Declaration
    public static uint EncodeDistance(float distance)
    Parameters
    Type Name Description
    float distance

    The float distance.

    Returns
    Type Description
    uint

    The uint encoded distance.

    FillSortingKeys(DrawContext, FastList<RenderObjectInfo>, int, int, SortKey[])

    Fill the sorting key array.

    Declaration
    public override void FillSortingKeys(DrawContext drawContext, FastList<RenderObjectInfo> renderObjects, int count, int offset, SortKey[] sortKeys)
    Parameters
    Type Name Description
    DrawContext drawContext

    The draw context.

    FastList<RenderObjectInfo> renderObjects
    int count

    The number of meshes to render.

    int offset

    The offset in render mesh.

    SortKey[] sortKeys

    The array of sort keys to fill.

    Overrides
    SortingMesh.FillSortingKeys(DrawContext, FastList<RenderObjectInfo>, int, int, SortKey[])

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX