Skip to main content

Module systems

Module systems 

Source
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§

BitmapTextSet
System set for bitmap text systems (runs in PostUpdate).

Functions§

glyph_reveal_system
Update glyph visibility when GlyphReveal changes.
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 ShakeEffect by jittering their position.
text_wave_system
Animate glyphs with WaveEffect using a sine-wave vertical offset.