25#include <utility/ressource_provider.hpp>
27#include <utility/engine.hpp>
29#include "guillaume/ecs/system_filler.hpp"
31#include "guillaume/components/image.hpp"
32#include "guillaume/components/transform.hpp"
33#include "guillaume/components/bound.hpp"
35#include "guillaume/systems/render_handle_map.hpp"
73 std::shared_ptr<utility::RessourceProvider>
76 utility::Engine &_engine;
87 std::shared_ptr<utility::RessourceProvider> ressourceProvider,
88 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...
ImageRender(std::shared_ptr< utility::RessourceProvider > ressourceProvider, utility::Engine &engine)
Create the system in the Render phase.
virtual void update(const ecs::Entity::Identifier &entityIdentifier) override
Load the texture of one image, record the outcome in its components::Image and upload a textured quad...
void prepare(void) override
Mark every picture 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, including those whose textu...
~ImageRender(void)
Forget the engine objects without removing them from the engine.
RenderHandleMap(void)=default
Create an empty map.
Rules. Every class here runs each frame on the entities that have the components it declares.