struct SpriteGlyphCreateInformation

Descriptor structure used for initialization of a SpriteGlyph.

Public

Constructors

SpriteGlyphCreateInformation

SpriteGlyphCreateInformation() = default

SpriteGlyphCreateInformation

SpriteGlyphCreateInformation(const SpriteImageInformation &spriteImageInformation, const HFont &font, u32 glyph, float defaultSize)

Fields

Font

HFont Font

Font from which to render the glyph from.

Glyph

u32 Glyph

Unicode code for the glyph to render.

DefaultSize

float DefaultSize

Size of the unscaled glyph in points.

Actual rendered size might be different depending on DPI scale or other scale factors.

AnimationPlayback

SpriteAnimationPlayback AnimationPlayback

Determines if animation is enabled and how should it play.

Animation

Describes the sprite sheet grid used for animation, if animation is used.