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 { ... }

Base class

classSystem

Abstract base class for game systems. More...

Public Member Functions Index

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

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 32 of file TransformClearSystem.ixx.

Public Member Functions

update()

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

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

Parameters
updateContext

The update context.

Definition at line 42 of file TransformClearSystem.ixx.

42 void update(helios::engine::runtime::world::UpdateContext& updateContext) noexcept override {
43
44 for (auto [entity, tc, active] : gameWorld_->view<
47 >().whereEnabled()) {
48 tc->clearDirty();
49 }
50
51 for (auto [entity, sc, active] : gameWorld_->view<
54 >().whereEnabled()) {
55 sc->clearDirty();
56 }
57
58 }

Reference helios::engine::ecs::System::gameWorld_.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.