27#include <utility/engine.hpp>
29#include "guillaume/ecs/system_filler.hpp"
31#include "guillaume/components/bound.hpp"
32#include "guillaume/components/scrim.hpp"
33#include "guillaume/components/transform.hpp"
35#include "guillaume/systems/render_handle_map.hpp"
61 utility::Engine &_engine;
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...
RenderHandleMap(void)=default
Create an empty map.
~ScrimRender(void) override=default
Destroy the system. The engine objects it created are left in the engine.
ScrimRender(utility::Engine &engine)
Create the system in the Render phase.
void update(const ecs::Entity::Identifier &entityIdentifier) override
Rebuild the quad of one scrim and upload it, creating the engine object on the first frame.
void cleanup(void) override
Remove the scrims of the entities that were not drawn this frame. Called once per frame after the ent...
void prepare(void) override
Mark every scrim as not drawn yet. Called once per frame before the entities are visited.
Rules. Every class here runs each frame on the entities that have the components it declares.