struct render::SpriteMaterialInfo

Contains information for initializing a sprite material.

Public

Constructors

SpriteMaterialInfo

SpriteMaterialInfo() = default

SpriteMaterialInfo

SpriteMaterialInfo(const TSpriteMaterialInfo<false> &other)

Initializes the object from the main thread variant.

Methods

Clone

TSpriteMaterialInfo<IsRenderProxy> Clone() const

Creates a new deep copy of the object.

This is different from standard copy constructor which will just reference the original "additionalData" field, while this will copy it.

Fields

GroupId

u64 GroupId

SpriteImage

SpriteImageType SpriteImage

Sprite image used to generate the sprite.

Used for animation only.

SpriteImageAllocation

Allocation handle to keep the sprite image alive as long as needed.

Tint

Color Tint

AnimationStartTime

float AnimationStartTime

AdditionalData

SPtr<SpriteMaterialExtraInfo> AdditionalData