Search Results for

    Show / Hide Table of Contents

    Class SpriteInfo

    Class that represent a sprite to be rendered.

    Inheritance
    object
    DisposableObject
    RenderObjectInfo
    SpriteInfo
    Implements
    IDisposable
    Inherited Members
    RenderObjectInfo.boundingBox
    RenderObjectInfo.CullingType
    RenderObjectInfo.Drawable
    RenderObjectInfo.isBoundingBoxDirty
    RenderObjectInfo.isSortKeyDirty
    RenderObjectInfo.IsEnabled
    RenderObjectInfo.Tag
    RenderObjectInfo.RenderFlags
    RenderObjectInfo.IsCullingEnabled
    RenderObjectInfo.FlipWinding
    RenderObjectInfo.IsSortKeyDirty
    RenderObjectInfo.IsActive
    RenderObjectInfo.SortKey
    RenderObjectInfo.Transform
    RenderObjectInfo.BoundingBox
    RenderObjectInfo.MakeDirty()
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public class SpriteInfo : RenderObjectInfo, IDisposable

    Constructors

    SpriteInfo()

    Initializes a new instance of the SpriteInfo class.

    Declaration
    public SpriteInfo()

    Fields

    Color

    The sprite color.

    Declaration
    public Color Color
    Field Value
    Type Description
    Color

    FlipMode

    The flip mode.

    Declaration
    public FlipMode FlipMode
    Field Value
    Type Description
    FlipMode

    Origin

    The sprite origin.

    Declaration
    public Vector2 Origin
    Field Value
    Type Description
    Vector2

    RenderLayer

    The render layer.

    Declaration
    public RenderLayerDescription RenderLayer
    Field Value
    Type Description
    RenderLayerDescription

    Sampler

    Gets the texture sampler.

    Declaration
    public SamplerState Sampler
    Field Value
    Type Description
    SamplerState

    SliceIndex

    The array slice index.

    Declaration
    public int SliceIndex
    Field Value
    Type Description
    int

    SourceRectangle

    The sprite source rectangle.

    Declaration
    public RectangleF SourceRectangle
    Field Value
    Type Description
    RectangleF

    SpriteOrderBias

    The sprite order bias.

    Declaration
    public int SpriteOrderBias
    Field Value
    Type Description
    int

    SpriteTexture

    The sprite texture.

    Declaration
    public Texture SpriteTexture
    Field Value
    Type Description
    Texture

    Properties

    DrawableType

    Gets the drawable type.

    Declaration
    public override DrawableType DrawableType { get; }
    Property Value
    Type Description
    DrawableType
    Overrides
    RenderObjectInfo.DrawableType

    InputLayoutID

    Gets the InputLayout ID.

    Declaration
    public override uint InputLayoutID { get; }
    Property Value
    Type Description
    uint
    Overrides
    RenderObjectInfo.InputLayoutID

    InputLayouts

    Gets the input layout.

    Declaration
    public override InputLayouts InputLayouts { get; }
    Property Value
    Type Description
    InputLayouts
    Overrides
    RenderObjectInfo.InputLayouts

    IsReady

    Gets a value indicating whether this instance is ready to be rendered.

    Declaration
    public override bool IsReady { get; }
    Property Value
    Type Description
    bool
    Overrides
    RenderObjectInfo.IsReady

    Material

    Gets the material.

    Declaration
    public override Material Material { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderObjectInfo.Material

    MaterialID

    Gets the material ID.

    Declaration
    public override uint MaterialID { get; }
    Property Value
    Type Description
    uint
    Overrides
    RenderObjectInfo.MaterialID

    OrderBias

    Gets the order bias.

    Declaration
    public override int OrderBias { get; }
    Property Value
    Type Description
    int
    Overrides
    RenderObjectInfo.OrderBias

    PrimitiveTopology

    Gets the primitive topology.

    Declaration
    public override PrimitiveTopology PrimitiveTopology { get; }
    Property Value
    Type Description
    PrimitiveTopology
    Overrides
    RenderObjectInfo.PrimitiveTopology

    RenderStateOrder

    Gets the order of the Render State.

    Declaration
    public override int RenderStateOrder { get; }
    Property Value
    Type Description
    int
    Overrides
    RenderObjectInfo.RenderStateOrder

    SortMode

    Gets the Sorting mode.

    Declaration
    public override SortMode SortMode { get; }
    Property Value
    Type Description
    SortMode
    Overrides
    RenderObjectInfo.SortMode

    Methods

    Collect(DrawContext)

    Prepare this object with the specified draw context.

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

    The draw context.

    Overrides
    RenderObjectInfo.Collect(DrawContext)

    Destroy()

    Destroy all resources of this instance.

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

    RefreshBoundingBox()

    Refresh the bounding box.

    Declaration
    protected override void RefreshBoundingBox()
    Overrides
    RenderObjectInfo.RefreshBoundingBox()

    Implements

    IDisposable

    Extension Methods

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