mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 17:41:10 +00:00
[ecs] Implement hierarchies as components
The main goal of this change was to make it easier to tell when a hierarchy has been deleted, but as a side benefit, it got rid of the use of PR_RESMAP. Also, it's easy to track the number of hierarchies. Unfortunately, it showed how brittle the component side of the ECS is (scene and canvas registries assumed their components were the first (no long the case), thus the sweeping changes). Centerprint doesn't work (but it hasn't for a while).
This commit is contained in:
parent
fc9c2fa544
commit
35eec0b2e5
77 changed files with 1196 additions and 979 deletions
|
@ -387,8 +387,9 @@ color_window (void)
|
|||
static transform_t
|
||||
create_debug_camera (void)
|
||||
{
|
||||
debug_camera_pivot = Transform_New (debug_scene->reg, nulltransform);
|
||||
debug_camera = Transform_New (debug_scene->reg, debug_camera_pivot);
|
||||
ecs_system_t ssys = { .reg = debug_scene->reg, .base = debug_scene->base };
|
||||
debug_camera_pivot = Transform_New (ssys, nulltransform);
|
||||
debug_camera = Transform_New (ssys, debug_camera_pivot);
|
||||
return debug_camera;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue