[ui] Attach text views to passage entities

Instead of creating new entities for the text views. This approximately
halves the number of entities required to display flowed text, but also
tests the ability to have an entity in multiple hierarchies (the goal of
the ECS component and system changes).
This commit is contained in:
Bill Currie 2022-12-14 22:38:37 +09:00
parent fdc0dba58b
commit 41d25df0d2
17 changed files with 232 additions and 148 deletions

View file

@ -55,7 +55,8 @@ typedef struct hud_subpic_s {
uint32_t w, h;
} hud_subpic_t;
extern struct ecs_registry_s *hud_registry;
extern struct ecs_system_s hud_system;
extern struct ecs_system_s hud_viewsys;
extern int hud_sb_lines;