14 float r; float g; float b; float a;
16 Colour(float _r, float _g, float _b, float _a) : r(_r), g(_g), b(_b), a(_a) {}
17 bool operator==(const Colour & c) const
19 return (r == c.r && g == c.g && b == c.b && a == c.a);
21 bool operator!=(const Colour & c) const {return !this->operator==(c);}
28 Path(const Objects & objects, unsigned _start, unsigned _end, const Colour & _fill = Colour(0.8,0.8,0.8,1));
30 Rect SolveBounds(const Objects & objects) const;
32 // Is point inside shape?
33 bool PointInside(const Objects & objects, const Vec2 & pt, bool debug=false) const;
35 unsigned m_start; // First bounding Bezier index
36 unsigned m_end; // Last (inclusive) '' ''
37 unsigned m_index; // index into Objects array
44 std::vector<Vec2> m_fill_points;
46 Colour m_fill; // colour to fill with