25#include "guillaume/ecs/component.hpp"
64 float _thickness { 8.0f };
65 float _startAngle { 0.0f };
66 float _sweepAngle { 3.14159265358979323846f };
float getSweepAngle(void) const
Get the angle the arc covers.
~Arc(void)=default
Default destructor for the Arc component.
Arc & setStartAngle(float startAngle)
Set the angle the arc starts at.
Arc & setThickness(float thickness)
Set the thickness of the arc.
int SegmentCount
A number of straight segments.
Arc & setSegments(SegmentCount segments)
Set how many straight segments approximate the arc.
SegmentCount getSegments(void) const
Get how many straight segments approximate the arc.
Arc(void)
Construct a half circle: 8 dp thick, starting at angle 0, covering pi radians, drawn with 48 segments...
float getStartAngle(void) const
Get the angle the arc starts at.
Arc & setSweepAngle(float sweepAngle)
Set the angle the arc covers from its start angle.
float getThickness(void) const
Get the thickness of the arc.
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.