25#include "guillaume/ecs/component.hpp"
102 bool _visible {
false };
103 float _progress { 0.0f };
Backdrop & setProgress(float progress)
Set the fade-in progress. Called by the entity's fade animation on every sample.
Backdrop(void)=default
Default constructor.
bool isVisible(void) const
Check whether the backdrop is shown.
float getProgress(void) const
Get the fade-in progress.
~Backdrop(void)=default
Default destructor.
Backdrop & setVisible(bool visible)
Store whether the backdrop is shown.
Base class of every component: a piece of state attached to an entity, plus a "changed" flag.
State. Every class here is plain data attached to an entity.