1 #ifndef _RIVE_POLYGON_HPP_
2 #define _RIVE_POLYGON_HPP_
3 #include "generated/shapes/polygon_base.hpp"
4 #include "shapes/path_vertex.hpp"
8 class Polygon : public PolygonBase
13 void update(ComponentDirt value) override;
16 void cornerRadiusChanged() override;
17 void pointsChanged() override;
19 void resizeVertices(int size);
20 virtual int expectedSize();
21 virtual void buildPolygon();
22 void buildVertex(PathVertex* vertex, float h, float w, float angle);