Expand description
Tileset configuration: codepage mappings, options, builder, and error types.
This module defines the public API for configuring PNG sprite sheet tilesets
that overlay or replace BitmapFont glyphs.
A tileset is a sprite sheet PNG sliced into equally sized tiles, each
mapped to a Unicode codepoint via a Codepage; SpriteCache
decodes and indexes those tiles for lookup by glyph at draw time.
Structs§
- Tileset
Builder - Builder for
TilesetOptions. - Tileset
Options - Options for loading a single tileset (sprite sheet).
Enums§
- Codepage
- Maps row-major tile indices in a sprite sheet to Unicode codepoints.
- Sheet
Color - What a tileset’s pixels mean, which decides how its sprites respond to the cell’s foreground color.
- Sprite
Align - Where a sprite sits inside the multi-cell box a span reserves for it.
- Tileset
Error - Errors that can occur during tileset validation or decoding.
Constants§
- CP437_
TO_ UNICODE - Standard IBM CP437 to Unicode mapping, 256 entries.