Skip to main content

WindowBasedShutdownSystem Class Template

Queues ShutdownCommand when no active window entities are left. More...

Declaration​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer> class helios::engine::platform::lifecycle::systems::WindowBasedShutdownSystem<THandle, TCommandBuffer> { ... }

Public Member Typedefs Index​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
usingCommandBuffer_type = TCommandBuffer
template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
usingEngineRoleTag = TypedSystemRole

Engine role marker used by runtime registries. More...

Public Member Functions Index​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
voidupdate (UpdateContext &updateContext, TCommandBuffer &cmdBuffer) noexcept

Checks window activity and queues shutdown when the set is empty. More...

Description​

Queues ShutdownCommand when no active window entities are left.

Template Parameters
THandle

Window handle type.

Definition at line 48 of file WindowBasedShutdownSystem.ixx.

Public Member Typedefs​

CommandBuffer_type​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
using helios::engine::platform::lifecycle::systems::WindowBasedShutdownSystem< THandle, TCommandBuffer >::CommandBuffer_type = TCommandBuffer

EngineRoleTag​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
using helios::engine::platform::lifecycle::systems::WindowBasedShutdownSystem< THandle, TCommandBuffer >::EngineRoleTag = TypedSystemRole

Engine role marker used by runtime registries.

Definition at line 57 of file WindowBasedShutdownSystem.ixx.

Public Member Functions​

update()​

template <typename THandle, typename TCommandBuffer = NullCommandBuffer>
void helios::engine::platform::lifecycle::systems::WindowBasedShutdownSystem< THandle, TCommandBuffer >::update (UpdateContext & updateContext, TCommandBuffer & cmdBuffer)
inline noexcept

Checks window activity and queues shutdown when the set is empty.

Parameters
updateContext

Frame-local update context.

cmdBuffer

Command buffer for submitting shutdown commands.

Definition at line 65 of file WindowBasedShutdownSystem.ixx.

66
67 if (updateContext.view<THandle, WindowComponent<THandle>>().withActive().empty()) {
69 }
70
71
72 }

Reference helios::registerComponents.


The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.