Search Results for

    Show / Hide Table of Contents

    Class BillboardRenderUnit

    Renders unit used to draw a batch of sprites.

    Inheritance
    object
    RenderUnit
    BillboardRenderUnit
    Inherited Members
    RenderUnit.BoundingBox
    Namespace: Evergine.Framework.Graphics.Billboard
    Assembly: Evergine.Framework.dll
    Syntax
    public class BillboardRenderUnit : RenderUnit

    Constructors

    BillboardRenderUnit(BillboardMeshProcessor, int)

    Initializes a new instance of the BillboardRenderUnit class.

    Declaration
    public BillboardRenderUnit(BillboardMeshProcessor billboardProcessor, int batchId)
    Parameters
    Type Name Description
    BillboardMeshProcessor billboardProcessor

    Billboard mesh processor.

    int batchId

    Batch ID.

    Methods

    Collect(DrawContext)

    Collects all the information to be rendered.

    Declaration
    public override void Collect(DrawContext drawContext)
    Parameters
    Type Name Description
    DrawContext drawContext

    The drawing context.

    Overrides
    RenderUnit.Collect(DrawContext)

    PassIsAvailable(DrawContext, int)

    Returns if the pass is available in this render unit.

    Declaration
    public override bool PassIsAvailable(DrawContext drawContext, int passId)
    Parameters
    Type Name Description
    DrawContext drawContext

    The DrawContext.

    int passId

    The Pass Id.

    Returns
    Type Description
    bool

    True if the pass is available.

    Overrides
    RenderUnit.PassIsAvailable(DrawContext, int)

    Prepare(CommandBuffer, DrawContext)

    Prepares this unit to be rendered.

    Declaration
    public override void Prepare(CommandBuffer commandBuffer, DrawContext drawContext)
    Parameters
    Type Name Description
    CommandBuffer commandBuffer

    The command buffer.

    DrawContext drawContext

    The draw context.

    Overrides
    RenderUnit.Prepare(CommandBuffer, DrawContext)

    Render(CommandBuffer, DrawContext, int)

    Renders an element using the specified command buffer.

    Declaration
    public override void Render(CommandBuffer commandBuffer, DrawContext drawContext, int passId)
    Parameters
    Type Name Description
    CommandBuffer commandBuffer

    The command buffer.

    DrawContext drawContext

    The draw context.

    int passId

    The pass ID.

    Overrides
    RenderUnit.Render(CommandBuffer, DrawContext, int)

    Extension Methods

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