Class SpriteInfo
Class that represent a sprite to be rendered.
Implements
Inherited Members
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
InputLayoutID
Gets the InputLayout ID.
Declaration
public override uint InputLayoutID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
InputLayouts
Gets the input layout.
Declaration
public override InputLayouts InputLayouts { get; }
Property Value
Type | Description |
---|---|
InputLayouts |
Overrides
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
Material
Gets the material.
Declaration
public override Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
Overrides
MaterialID
Gets the material ID.
Declaration
public override uint MaterialID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
OrderBias
Gets the order bias.
Declaration
public override int OrderBias { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
PrimitiveTopology
Gets the primitive topology.
Declaration
public override PrimitiveTopology PrimitiveTopology { get; }
Property Value
Type | Description |
---|---|
PrimitiveTopology |
Overrides
RenderStateOrder
Gets the order of the Render State.
Declaration
public override int RenderStateOrder { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
SortMode
Gets the Sorting mode.
Declaration
public override SortMode SortMode { get; }
Property Value
Type | Description |
---|---|
SortMode |
Overrides
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
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
RefreshBoundingBox()
Refresh the bounding box.
Declaration
protected override void RefreshBoundingBox()