Struct SpriteDrawCommand
Describes a single sprite draw request in backend-neutral terms.
public readonly record struct SpriteDrawCommand : IEquatable<SpriteDrawCommand>
- Implements
- Inherited Members
Constructors
SpriteDrawCommand(string, RectI, RectI, ColorRgba32, float)
Describes a single sprite draw request in backend-neutral terms.
public SpriteDrawCommand(string TextureKey, RectI SourceRect, RectI DestinationRectPixels, ColorRgba32 Tint, float LayerDepth)
Parameters
TextureKeystringThe host-defined texture identifier to sample from.
SourceRectRectIThe source rectangle inside the texture.
DestinationRectPixelsRectIThe destination rectangle in screen pixels passed to the render backend.
TintColorRgba32The multiplicative tint color applied during drawing.
LayerDepthfloatThe layer depth used to sort draw order.
Properties
DestinationRectPixels
The destination rectangle in screen pixels passed to the render backend.
public RectI DestinationRectPixels { get; init; }
Property Value
LayerDepth
The layer depth used to sort draw order.
public float LayerDepth { get; init; }
Property Value
SourceRect
The source rectangle inside the texture.
public RectI SourceRect { get; init; }
Property Value
TextureKey
The host-defined texture identifier to sample from.
public string TextureKey { get; init; }
Property Value
Tint
The multiplicative tint color applied during drawing.
public ColorRgba32 Tint { get; init; }