27#include <utility/engine.hpp>
29#include "guillaume/ecs/system_filler.hpp"
31#include "guillaume/components/bound.hpp"
32#include "guillaume/components/color.hpp"
33#include "guillaume/components/line.hpp"
34#include "guillaume/components/transform.hpp"
36#include "guillaume/systems/render_handle_map.hpp"
68 components::Color, components::Line>
71 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...
LineRender(utility::Engine &engine)
Create the system in the Render phase.
static constexpr float StrokeLift
Distance a stroke placed on the top or bottom edge is moved towards the viewer, along the forward axi...
~LineRender(void) override=default
Destroy the system. The engine objects it created are left in the engine.
void prepare(void) override
Mark every engine object as not drawn yet. Called once per frame before the entities are visited.
void cleanup(void) override
Remove the engine objects of the entities that were not drawn this frame. Called once per frame after...
void update(const ecs::Entity::Identifier &entityIdentifier) override
Rebuild the mesh of one stroke and upload it, creating the engine object on the first frame.
RenderHandleMap(void)=default
Create an empty map.
Rules. Every class here runs each frame on the entities that have the components it declares.