Search Results for

    Show / Hide Table of Contents

    Class SpriteMeshProcessor

    Struct that represent a mesh to render.

    Inheritance
    object
    MeshProcessor
    SpriteMeshProcessor
    Implements
    IDisposable
    Inherited Members
    MeshProcessor.GraphicsContext
    MeshProcessor.RenderManager
    MeshProcessor.IsActivated
    MeshProcessor.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Graphics.Sprite
    Assembly: Evergine.Framework.dll
    Syntax
    public class SpriteMeshProcessor : MeshProcessor, IDisposable

    Constructors

    SpriteMeshProcessor()

    Initializes a new instance of the SpriteMeshProcessor class.

    Declaration
    public SpriteMeshProcessor()

    Properties

    Priority

    Gets the priority of this processor. Processors with higher values will be executed earlier.

    Declaration
    public override float Priority { get; }
    Property Value
    Type Description
    float
    Overrides
    MeshProcessor.Priority

    Methods

    Collect()

    Collect batches to be rendered.

    Declaration
    public override void Collect()
    Overrides
    MeshProcessor.Collect()

    CouldBatch(RenderObjectInfo, RenderObjectInfo)

    Compare if this processor could batch these two meshes.

    Declaration
    public override bool CouldBatch(RenderObjectInfo objectInfo1, RenderObjectInfo objectInfo2)
    Parameters
    Type Name Description
    RenderObjectInfo objectInfo1
    RenderObjectInfo objectInfo2
    Returns
    Type Description
    bool

    True if the batch is possible.

    Overrides
    MeshProcessor.CouldBatch(RenderObjectInfo, RenderObjectInfo)

    CouldRenderObject(RenderObjectInfo)

    Could render a single render object.

    Declaration
    public override bool CouldRenderObject(RenderObjectInfo renderObjectInfo)
    Parameters
    Type Name Description
    RenderObjectInfo renderObjectInfo

    The render object info.

    Returns
    Type Description
    bool

    True if this mesh processor could render an object.

    Overrides
    MeshProcessor.CouldRenderObject(RenderObjectInfo)

    CreateMaterial()

    Create Line Material.

    Declaration
    protected SpriteBatchMaterial CreateMaterial()
    Returns
    Type Description
    SpriteBatchMaterial

    The material.

    Destroy()

    Destroy the sprite mesh processor.

    Declaration
    protected override void Destroy()
    Overrides
    MeshProcessor.Destroy()

    EmitBatch(int, int, DrawContext, RenderObjectInfoAccessor)

    Emit a render batch.

    Declaration
    public override RenderUnit EmitBatch(int startIndex, int batchElementCount, DrawContext drawContext, MeshProcessor.RenderObjectInfoAccessor renderObjectInfoAccessor)
    Parameters
    Type Name Description
    int startIndex

    start mesh index.

    int batchElementCount
    DrawContext drawContext

    The draw context.

    MeshProcessor.RenderObjectInfoAccessor renderObjectInfoAccessor

    Function to obtain the a renderObjectInfo by its index.

    Returns
    Type Description
    RenderUnit

    Id of this batch inside mesh processor.

    Overrides
    MeshProcessor.EmitBatch(int, int, DrawContext, MeshProcessor.RenderObjectInfoAccessor)

    GetResourceSet(DrawContext, Texture, SamplerState)

    Gest a resource set associated to the specified sprite info.

    Declaration
    public ResourceSet GetResourceSet(DrawContext drawContext, Texture spriteTexture, SamplerState spriteSampler)
    Parameters
    Type Name Description
    DrawContext drawContext

    The drawcontext.

    Texture spriteTexture

    The texture.

    SamplerState spriteSampler

    The sampler.

    Returns
    Type Description
    ResourceSet

    The resource set.

    Initialize()

    Initialize this mesh processor.

    Declaration
    protected override void Initialize()
    Overrides
    MeshProcessor.Initialize()

    Reset()

    Reset processors to be ready for batch collecting.

    Declaration
    public override void Reset()
    Overrides
    MeshProcessor.Reset()

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX