include/rays/painter.h in rays-0.1.14 vs include/rays/painter.h in rays-0.1.15
- old
+ new
@@ -104,10 +104,36 @@
void ellipse (
const Point& center, const Point& radius,
const Point& hole_radius = 0,
float angle_from = 0, float angle_to = 360);
+ void curve (
+ coord x1, coord y1, coord x2, coord y2,
+ coord x3, coord y3, coord x4, coord y4,
+ bool loop = false);
+
+ void curve (
+ const Point& p1, const Point& p2, const Point& p3, const Point& p4,
+ bool loop = false);
+
+ void curve (
+ const Point* points, size_t size,
+ bool loop = false);
+
+ void bezier (
+ coord x1, coord y1, coord x2, coord y2,
+ coord x3, coord y3, coord x4, coord y4,
+ bool loop = false);
+
+ void bezier (
+ const Point& p1, const Point& p2, const Point& p3, const Point& p4,
+ bool loop = false);
+
+ void bezier (
+ const Point* points, size_t size,
+ bool loop = false);
+
void image (
const Image& image, coord x = 0, coord y = 0);
void image (
const Image& image, const Point& position);
@@ -173,9 +199,21 @@
const Color& stroke () const;
void set_stroke_width (coord width);
coord stroke_width () const;
+
+ void set_stroke_cap (CapType cap);
+
+ CapType stroke_cap () const;
+
+ void set_stroke_join (JoinType join);
+
+ JoinType stroke_join () const;
+
+ void set_miter_limit (coord limit);
+
+ coord miter_limit () const;
void set_nsegment (int nsegment);
uint nsegment () const;