27#include <utility/ressource_provider.hpp>
29#include <utility/graphic/text/code_points.hpp>
31#include <utility/engine.hpp>
33#include "guillaume/ecs/system_filler.hpp"
35#include "guillaume/components/glyph.hpp"
36#include "guillaume/components/transform.hpp"
37#include "guillaume/components/color.hpp"
38#include "guillaume/components/bound.hpp"
40#include "guillaume/systems/render_handle_map.hpp"
71 components::Glyph, components::Color>
74 std::shared_ptr<utility::RessourceProvider>
77 utility::Engine &_engine;
78 std::string _defaultFontPath;
79 std::string _glyphCodePath;
81 std::shared_ptr<utility::graphic::CodePoints>
84 bool _hasFont {
false };
98 std::shared_ptr<utility::RessourceProvider> ressourceProvider,
99 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...
void cleanup(void) override
Remove the engine objects of the entities that were not drawn this frame. Called once per frame after...
~GlyphRender(void)
Forget the engine objects without removing them from the engine.
GlyphRender(std::shared_ptr< utility::RessourceProvider > ressourceProvider, utility::Engine &engine)
Create the system in the Render phase and load the icon font and its code point table.
void prepare(void) override
Mark every icon as not drawn yet. Called once per frame before the entities are visited.
virtual void update(const ecs::Entity::Identifier &entityIdentifier) override
Build the renderable of one icon from its current components and upload it, creating the engine objec...
RenderHandleMap(void)=default
Create an empty map.
Rules. Every class here runs each frame on the entities that have the components it declares.