25#include <utility/ressource_provider.hpp>
27#include <utility/engine.hpp>
29#include "guillaume/ecs/system_filler.hpp"
31#include "guillaume/components/mesh.hpp"
32#include "guillaume/components/transform.hpp"
33#include "guillaume/components/bound.hpp"
35#include "guillaume/systems/render_handle_map.hpp"
66 std::shared_ptr<utility::RessourceProvider>
68 utility::Engine &_engine;
79 std::shared_ptr<utility::RessourceProvider> ressourceProvider,
80 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...
MeshRender(std::shared_ptr< utility::RessourceProvider > ressourceProvider, utility::Engine &engine)
Create the system in the Render phase.
void cleanup(void) override
Remove the engine objects of the entities that were not drawn this frame, including those whose model...
virtual void update(const ecs::Entity::Identifier &entityIdentifier) override
Load the model of one entity at its current pose and upload it, creating the engine object on the fir...
void prepare(void) override
Mark every model as not drawn yet. Called once per frame before the entities are visited.
~MeshRender(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.