SceneSyncSystem Class
System that synchronizes TransformComponents with SceneNodes. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Constructors Index
| SceneSyncSystem (helios::engine::modules::scene::types::SceneToViewportMap &sceneToViewportMap) | |
|
Constructs the system with the scene-to-viewport map. More... | |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Synchronizes gameplay transforms with the scene graph. More... | |
Public Member Attributes Index
| helios::engine::modules::scene::types::SceneToViewportMap & | sceneToViewportMap_ |
|
Reference to the scene-to-viewport mapping for scene iteration. More... | |
Description
System that synchronizes TransformComponents with SceneNodes.
This system bridges the gameplay simulation and the rendering scene graph. It propagates local transformations from dirty ComposeTransformComponents to their corresponding SceneNodes, triggers a scene graph update, and then reads back the computed world transforms into the ComposeTransformComponents.
The system runs in two passes: 1. **Write pass**: Dirty local transforms are pushed to SceneNodes 2. **Scene update**: All scenes update their node hierarchies 3. **Read pass**: Computed world transforms are read back to components
- See Also
ComposeTransformComponent
- See Also
SceneNodeComponent
- See Also
SceneToViewportMap
Definition at line 47 of file SceneSyncSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 51 of file SceneSyncSystem.ixx.
Public Constructors
SceneSyncSystem()
| inline explicit |
Constructs the system with the scene-to-viewport map.
- Parameters
-
sceneToViewportMap Reference to the scene mapping for accessing all scenes.
Definition at line 63 of file SceneSyncSystem.ixx.
Reference sceneToViewportMap_.
Public Member Functions
update()
| inline noexcept |
Synchronizes gameplay transforms with the scene graph.
Performs a two-pass synchronization: 1. Writes dirty local transforms to SceneNodes 2. Updates all scene hierarchies 3. Reads computed world transforms back to components
- Parameters
-
updateContext The current frame's update context.
Definition at line 76 of file SceneSyncSystem.ixx.
Reference sceneToViewportMap_.
Public Member Attributes
sceneToViewportMap_
|
Reference to the scene-to-viewport mapping for scene iteration.
Definition at line 56 of file SceneSyncSystem.ixx.
Referenced by SceneSyncSystem and update.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.