ActiveViewportHandlesStateComponent Class Template
Stores the currently active viewport IDs based on game/match state. More...
Declaration
Public Member Functions Index
template <typename THandle> | |
| void | setViewportHandles (std::span< const ViewportHandle > &viewportHandles) |
|
Replaces the current viewport handles with the provided list. More... | |
template <typename THandle> | |
| auto | viewportHandles () const noexcept -> std::span< const ViewportHandle > |
|
Returns a span over all active viewport IDs. More... | |
template <typename THandle> | |
| bool | has (const ViewportHandle viewportHandle) const noexcept |
|
Returns true if the ViewportId is contained in this component, otherwise false. More... | |
template <typename THandle> | |
| void | clear () const noexcept |
|
Clears all active viewport IDs. More... | |
Private Member Attributes Index
template <typename THandle> | |
| std::vector< ViewportHandle > | viewportHandles_ |
|
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 27 of file ActiveViewportHandlesStateComponent.ixx.
Public Member Functions
clear()
| inline noexcept |
has()
| inline noexcept |
Returns true if the ViewportId is contained in this component, otherwise false.
- Parameters
-
viewportId
- Returns
true if the ViewportId is currently active, false otherwise.
Definition at line 61 of file ActiveViewportHandlesStateComponent.ixx.
setViewportHandles()
| inline |
Replaces the current viewport handles with the provided list.
- Parameters
-
viewportIds The new list of active viewport handles.
Definition at line 42 of file ActiveViewportHandlesStateComponent.ixx.
viewportHandles()
| inline noexcept |
Returns a span over all active viewport IDs.
- Returns
Read-only span of viewport handles.
Definition at line 51 of file ActiveViewportHandlesStateComponent.ixx.
Referenced by helios::engine::rendering::viewport::components::ActiveViewportHandlesStateComponent< THandle >::setViewportHandles.
Private Member Attributes
viewportHandles_
| mutable |
Currently active viewport identifiers.
Definition at line 32 of file ActiveViewportHandlesStateComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.