StateToViewportPolicyUpdateSystem Class Template
Updates the session's active viewport list based on state policy. More...
Declaration
Public Member Typedefs Index
template <typename StateLft, typename StateRgt> | |
| using | EngineRoleTag = helios::engine::runtime::world::tags::SystemRole |
Public Constructors Index
template <typename StateLft, typename StateRgt> | |
| StateToViewportPolicyUpdateSystem (StateToIdMapPair< StateLft, StateRgt, ViewportHandle > stateToIdMapPair) | |
|
Constructs the system with a state-to-ID map pair. More... | |
Public Member Functions Index
template <typename StateLft, typename StateRgt> | |
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Updates the session's active viewport IDs. More... | |
Private Member Attributes Index
template <typename StateLft, typename StateRgt> | |
| StateToIdMapPair< StateLft, StateRgt, ViewportHandle > | stateToIdMapPair_ |
|
Policy defining viewport-to-state mappings. More... | |
Description
Updates the session's active viewport list based on state policy.
Queries the current states from the session using the configured template parameters, then uses StateToIdMapPair to determine which viewports should be active. The resulting viewport IDs are stored in the session for use by the rendering system.
Definition at line 56 of file StateToViewportPolicyUpdateSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 65 of file StateToViewportPolicyUpdateSystem.ixx.
Public Constructors
StateToViewportPolicyUpdateSystem()
| inline explicit |
Constructs the system with a state-to-ID map pair.
- Parameters
-
stateToIdMapPair Policy mapping states to viewport IDs.
Definition at line 72 of file StateToViewportPolicyUpdateSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates the session's active viewport IDs.
Clears the current viewport IDs and sets them based on the current game and match state combination.
- Parameters
-
updateContext The current frame's update context.
Definition at line 83 of file StateToViewportPolicyUpdateSystem.ixx.
References helios::engine::state::StateToIdMapPair< LState, RState, TId >::ids and helios::engine::rendering::registerComponents.
Private Member Attributes
stateToIdMapPair_
|
Policy defining viewport-to-state mappings.
Definition at line 61 of file StateToViewportPolicyUpdateSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.