struct GUIBackgroundSpriteCreateInformation

Structure used for initializing GUIBackgroundSprite.

Public

Constructors

GUIBackgroundSpriteCreateInformation

GUIBackgroundSpriteCreateInformation(const Size2UI &size, const GUIStyleSheetRules &rules, const Color &tint, u64 batchId)

Fields

Offset

Vector2I Offset

Offset relative to the parent GUI element's content area to place the sprite at.

Size

Size2UI Size

Size of the GUI element as determined by the layouting pass.

Depth

u32 Depth

Depth at which to render the sprite.

Higher depth means a sprite is rendered behind sprites with lower depth.

Tint

Color Tint

Runtime color tint to apply to the sprite.

BatchId

u64 BatchId

ID that specifies if the sprite is allowed to be batched with other sprites.

Only sprites with the same batch ID can be batched.

Rules

const GUIStyleSheetRules & Rules

Style sheet rules that determine how to style the sprite.