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/ellipse.hpp"
34#include "guillaume/components/transform.hpp"
36#include "guillaume/systems/render_handle_map.hpp"
60 components::Color, components::Ellipse>
63 utility::Engine &_engine;
75 std::vector<utility::math::Vector2F>
76 buildLocalEllipseVertices(
float halfWidth,
float halfHeight,
89 std::vector<utility::graphic::PositionF> buildEllipseVertices(
90 const utility::graphic::PositionF ¢er,
91 const utility::graphic::OrientationF &orientation,
92 const utility::math::Vector2F &scale,
93 const utility::graphic::SizeF &
size,
int segments);
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...
~EllipseRender(void)
Forget the engine objects without removing them from the engine.
virtual void update(const ecs::Entity::Identifier &entityIdentifier) override
Rebuild the mesh of one ellipse and upload it, creating the engine object on the first frame.
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...
EllipseRender(utility::Engine &engine)
Create the system in the Render phase.
RenderHandleMap(void)=default
Create an empty map.
std::size_t size(void) const
Count the entities that have an engine object in this map.
Rules. Every class here runs each frame on the entities that have the components it declares.