ActiveViewportIdsStateComponent Class
Stores the currently active viewport IDs based on game/match state. More...
Declaration
Public Member Functions Index
| void | setViewportIds (std::span< const ViewportId > &viewportIds) |
|
Replaces the current viewport IDs with the provided list. More... | |
| std::span< const ViewportId > | viewportIds () const noexcept |
|
Returns a span over all active viewport IDs. More... | |
| void | clear () const noexcept |
|
Clears all active viewport IDs. More... | |
Private Member Attributes Index
| std::vector< ViewportId > | viewportIds_ |
|
Currently active viewport identifiers. More... | |
Description
Stores the currently active viewport IDs based on game/match state.
This component maintains a list of ViewportIds that should be rendered for the current game and match state combination. It is updated by StateToViewportPolicyUpdateSystem each frame based on the configured StateToViewportPolicy.
Definition at line 32 of file ActiveViewportIdsStateComponent.ixx.
Public Member Functions
clear()
| inline noexcept |
Clears all active viewport IDs.
Definition at line 63 of file ActiveViewportIdsStateComponent.ixx.
setViewportIds()
| inline |
Replaces the current viewport IDs with the provided list.
- Parameters
-
viewportIds The new list of active viewport IDs.
Definition at line 47 of file ActiveViewportIdsStateComponent.ixx.
Reference viewportIds.
viewportIds()
| inline nodiscard noexcept |
Returns a span over all active viewport IDs.
- Returns
Read-only span of viewport identifiers.
Definition at line 56 of file ActiveViewportIdsStateComponent.ixx.
Referenced by setViewportIds.
Private Member Attributes
viewportIds_
| mutable |
Currently active viewport identifiers.
Definition at line 37 of file ActiveViewportIdsStateComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.