Skip to main content

Module sprite

Module sprite 

Source
Expand description

Sprite — textured quad with anchor and tint.

Composed over Container (no inheritance). Sprites participate in the scene graph through their inner container field; the renderer’s batcher groups sprites that share a texture and blend mode.

Structs§

Sprite
Textured quad node. Local rect is [0, 1]²; anchor shifts that local origin (0,0 = top-left, 1,1 = bottom-right). The sprite’s Container::transform is then applied.