Skip to main content

TransformClearSystem Class

System that clears the dirty state of TransformComponents and ScaleComponents at the end of a frame. More...

Declaration

class helios::engine::modules::spatial::transform::systems::TransformClearSystem { ... }

Public Member Typedefs Index

usingEngineRoleTag = helios::engine::common::tags::SystemRole

Public Member Functions Index

voidupdate (helios::engine::runtime::world::UpdateContext &updateContext) noexcept

Updates the system, clearing dirty flags of Transform- and ScaleStateComponent. More...

Description

System that clears the dirty state of TransformComponents and ScaleComponents at the end of a frame.

This system runs in the post-update phase. It iterates over all TransformComponents and resets their dirty flag if it was set. This ensures that changes are only processed once per frame by other systems (like SceneSyncSystem).

Definition at line 34 of file TransformClearSystem.ixx.

Public Member Typedefs

EngineRoleTag

using helios::engine::modules::spatial::transform::systems::TransformClearSystem::EngineRoleTag = helios::engine::common::tags::SystemRole

Public Member Functions

update()

void helios::engine::modules::spatial::transform::systems::TransformClearSystem::update (helios::engine::runtime::world::UpdateContext & updateContext)
inline noexcept

Updates the system, clearing dirty flags of Transform- and ScaleStateComponent.

Parameters
updateContext

The update context.

Definition at line 47 of file TransformClearSystem.ixx.

48
49 for (auto [entity, tc, active] : updateContext.view<
52 >().whereEnabled()) {
53 tc->clearDirty();
54 }
55
56 for (auto [entity, sc, active] : updateContext.view<
59 >().whereEnabled()) {
60 sc->clearDirty();
61 }
62
63 }

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.