SpriteBatchItem

Namespace: Murder.Core.Graphics
Assembly: Murder.dll

public class SpriteBatchItem

⭐ Constructors

public SpriteBatchItem()

⭐ Properties

IndexData

public Int32[] IndexData;

Returns
int[]

Texture

public Texture2D Texture;

Returns
Texture2D

VertexCount

public int VertexCount;

Returns
int

VertexData

public VertexInfo[] VertexData;

Returns
VertexInfo[]

⭐ Methods

Set(Texture2D, Vector2, Vector2, T?, float, Vector2, ImageFlip, Color, Vector2, Vector3, float)

public void Set(Texture2D texture, Vector2 position, Vector2 destinationSize, T? sourceRectangle, float rotation, Vector2 scale, ImageFlip flip, Color color, Vector2 origin, Vector3 colorBlend, float layerDepth)

Sets a Texture to be drawn to the batch

Parameters
texture Texture2D

position Vector2

destinationSize Vector2

sourceRectangle T?

rotation float

scale Vector2

flip ImageFlip

color Color

origin Vector2

colorBlend Vector3

layerDepth float

SetPolygon(Texture2D, ReadOnlySpan, DrawInfo)

public void SetPolygon(Texture2D texture, ReadOnlySpan<T> vertices, DrawInfo drawInfo)

Parameters
texture Texture2D
vertices ReadOnlySpan<T>
drawInfo DrawInfo