25#include <utility/graphic/pose.hpp>
27#include "guillaume/ecs/system_filler.hpp"
29#include "guillaume/components/animation.hpp"
30#include "guillaume/components/backdrop.hpp"
31#include "guillaume/components/scrim.hpp"
32#include "guillaume/components/transform.hpp"
74 static constexpr float Extent = 8192.0f;
131 const utility::graphic::PoseF &ownerPose,
132 float ownerWidth,
float ownerHeight);
Stores every component of a scene, per component type and per entity identifier, and knows which ones...
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
The base class to derive a system from: a System whose signature is the list of component types given...
static void follow(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier, const utility::graphic::PoseF &ownerPose, float ownerWidth, float ownerHeight)
Center a backdrop on its owner and place it half a layer behind it.
static void apply(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Write the Scrim color that matches the current state of a backdrop.
static void setVisible(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier, bool visible)
Show or hide a backdrop.
Backdrop(void)
Create the system in the Layout phase.
static constexpr float Extent
~Backdrop(void) override=default
Destroy the system. It owns no resource.
void update(const ecs::Entity::Identifier &entityIdentifier) override
Write the Scrim color of one backdrop for this frame, so a theme change is picked up without any call...
Rules. Every class here runs each frame on the entities that have the components it declares.