Expand description
§systems.rs
§systems.rs 文件
§Module Overview
§模块概述
Contains the ECS systems that keep bitmap text entities synchronized with their data. It rasterizes required glyphs, recomputes layout when text changes, spawns and updates glyph child entities, and applies reveal state to the final rendered characters.
包含让位图文本实体与其数据保持同步的 ECS 系统。它会栅格化所需字形,在文本变化时 重新计算布局,生成并更新逐字形子实体,并把 reveal 状态应用到最终渲染出的字符上。
Structs§
- Bitmap
Text Set - System set for bitmap text systems (runs in PostUpdate).
Functions§
- glyph_
reveal_ system - Update glyph visibility when
GlyphRevealchanges. - layout_
text_ system - Compute layout for changed text blocks.
- rasterize_
glyphs_ system - Rasterize any new glyphs needed by changed text blocks.
- sync_
glyph_ entities_ system - Synchronize glyph child entities to match the computed layout.
- text_
shake_ system - Animate glyphs with
ShakeEffectby jittering their position. - text_
wave_ system - Animate glyphs with
WaveEffectusing a sine-wave vertical offset.