Expand description
Decoded sprite cache: PNG decoding, tile extraction, and runtime lookup.
The SpriteCache is built from TilesetOptions
and provides O(1) lookup of decoded RGBA8 sprites by codepoint.
Structs§
- Sprite
- A decoded, ready-to-blit sprite.
- Sprite
Cache - Cache of decoded sprites, keyed by Unicode codepoint.
Functions§
- source_
over - Blends
srcoverdstusing the Porter-DuffSRC_OVERoperator for straight-alpha pixels:out = src + dst * (1 - src.a)for each channel, including alpha.