Commit 89cc968
committed
Implement glyph atlas and tileset loading for Runeforge
- Introduced `GlyphAtlas` for efficient text rendering with pre-rendered glyphs.
- Added `Tileset` for loading PNG tilesets, supporting sprite sheets for graphical rendering.
- Implemented font loading and rendering for TrueType and BDF bitmap fonts.
- Created error handling for tileset operations with `TilesetError`.
- Updated `Cargo.toml` for `runeforge-tileset` with necessary dependencies.
- Enhanced documentation with examples for font and tileset usage.
- Added tests for character encoding and tile dimensions.1 parent 121f759 commit 89cc968
8 files changed
Lines changed: 1476 additions & 37 deletions
File tree
- crates/runeforge-tileset
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | | - | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
0 commit comments