25#include "guillaume/ecs/component.hpp"
58 float _thickness { 8.0f };
Ring & setThickness(float thickness)
Set the thickness of the ring.
~Ring(void)=default
Default destructor for the Ring component.
float getThickness(void) const
Get the thickness of the ring.
int SegmentCount
A number of straight segments.
Ring & setSegments(SegmentCount segments)
Set how many straight segments approximate the ring.
SegmentCount getSegments(void) const
Get how many straight segments approximate the ring.
Ring(void)
Construct a ring 8 dp thick drawn with 48 segments.
Base class of every component: a piece of state attached to an entity, plus a "changed" flag.
State. Every class here is plain data attached to an entity.