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/ring.hpp"
34#include "guillaume/components/transform.hpp"
36#include "guillaume/systems/render_handle_map.hpp"
61 components::Color, components::Ring>
64 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.
void cleanup(void) override
Remove the engine objects of the entities that were not drawn this frame. Called once per frame after...
RingRender(utility::Engine &engine)
Create the system in the Render phase.
~RingRender(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 update(const ecs::Entity::Identifier &entityIdentifier) override
Rebuild the mesh of one ring and upload it, creating the engine object on the first frame.
Rules. Every class here runs each frame on the entities that have the components it declares.