Expand description
In-game book/documentation system (Patchouli-like).
Modules§
- book_ui
- font
- Custom TTF/OTF font support for book rendering.
Uses
fontdueto rasterize glyphs into a packed atlas texture (RGBA8). - renderer
- Book renderer — ties together yog-ui layout, yog-gfx GPU pipeline, SVG icon rasterization, and custom font rendering.
- state
- Per-book navigation state.
- svg
- SVG rasterization → RGBA pixel buffer.
- theme
- Visual theme for book rendering.
Structs§
- Book
- The top-level book definition — replaces
patchouli_books/<id>/book.json. - Book
Category - Represents a book category tab (e.g. “Basics”, “Patterns”).
- Book
Entry - One entry in a book (like a “page” in the TOC sidebar).
- Book
Font - Reference to a registered font — serializable, stored in
BookPage::CustomText. The actual TTF bytes live inBookFontRegistry(registered separately). - Book
Macro - A macro substitution (e.g.
$(thing)→ red color span). - Book
Registry - Global registry for all in-game books.
- Book
Renderer - Book
Theme - All colors are 0xAARRGGBB.
- Book
View State
Enums§
- Book
Page - A single page variant inside a book entry.