summaryrefslogtreecommitdiff
path: root/scene/main/canvas_item.h
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-11-24 18:15:10 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-11-27 20:45:59 +0300
commit3ec972fc95f3d9fb308af0fded69fc7e53940f78 (patch)
tree451f0c2094bbb34f40000edb2076c9a485b85ac5 /scene/main/canvas_item.h
parentd395f7082876db14b592952eb91961a62d9bc604 (diff)
Restored antialiased lines by emulation using triangle strips
Diffstat (limited to 'scene/main/canvas_item.h')
-rw-r--r--scene/main/canvas_item.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/main/canvas_item.h b/scene/main/canvas_item.h
index 412ef8079b..74353cd4b5 100644
--- a/scene/main/canvas_item.h
+++ b/scene/main/canvas_item.h
@@ -331,9 +331,9 @@ public:
/* DRAWING API */
void draw_line(const Point2 &p_from, const Point2 &p_to, const Color &p_color, float p_width = 1.0);
- void draw_polyline(const Vector<Point2> &p_points, const Color &p_color, float p_width = 1.0);
- void draw_polyline_colors(const Vector<Point2> &p_points, const Vector<Color> &p_colors, float p_width = 1.0);
- void draw_arc(const Vector2 &p_center, float p_radius, float p_start_angle, float p_end_angle, int p_point_count, const Color &p_color, float p_width = 1.0);
+ void draw_polyline(const Vector<Point2> &p_points, const Color &p_color, float p_width = 1.0, bool p_antialiased = false);
+ void draw_polyline_colors(const Vector<Point2> &p_points, const Vector<Color> &p_colors, float p_width = 1.0, bool p_antialiased = false);
+ void draw_arc(const Vector2 &p_center, float p_radius, float p_start_angle, float p_end_angle, int p_point_count, const Color &p_color, float p_width = 1.0, bool p_antialiased = false);
void draw_multiline(const Vector<Point2> &p_points, const Color &p_color, float p_width = 1.0);
void draw_multiline_colors(const Vector<Point2> &p_points, const Vector<Color> &p_colors, float p_width = 1.0);
void draw_rect(const Rect2 &p_rect, const Color &p_color, bool p_filled = true, float p_width = 1.0);