Header menu logo Mibo

SpriteState Type

State required to render a 2D sprite via SpriteBatch.Draw.

Record fields

Record Field Description

Color

Full Usage: Color

Field type: Color

Tint color (multiplied with texture).

Field type: Color

Dest

Full Usage: Dest

Field type: Rectangle

Destination rectangle on screen (in pixels).

Field type: Rectangle

Layer

Full Usage: Layer

Field type: int<MeasureProduct<RenderLayer, MeasureOne>>

Render layer for ordering.

Field type: int<MeasureProduct<RenderLayer, MeasureOne>>

NormalMap

Full Usage: NormalMap

Field type: Texture2D voption

Optional normal map for per-pixel lighting. When ValueSome, the lit shader uses the normal-map variant; when ValueNone, the plain variant.

Field type: Texture2D voption

Origin

Full Usage: Origin

Field type: Vector2

Origin point for rotation and positioning (relative to Dest).

Field type: Vector2

Rotation

Full Usage: Rotation

Field type: float32

Rotation in radians around Origin.

Field type: float32

Source

Full Usage: Source

Field type: Rectangle

Source rectangle within the texture (in texels).

Field type: Rectangle

Texture

Full Usage: Texture

Field type: Texture2D

The texture to draw.

Field type: Texture2D

Type something to start searching.