diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-11-28 11:32:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 11:32:16 +0300 |
commit | 4a3588a51a9dfde3c8e1155aa2ab80c48cb0c19a (patch) | |
tree | e435bd63065b3328ce199202b0552aed4d94a076 /servers/rendering/rendering_server_canvas.h | |
parent | 94341ac547002d5d1e338fa115754035d44f51d2 (diff) | |
parent | 3ec972fc95f3d9fb308af0fded69fc7e53940f78 (diff) |
Merge pull request #43828 from Chaosus/restore_line_antialiasing
Restored antialiased lines by emulation using triangle strips
Diffstat (limited to 'servers/rendering/rendering_server_canvas.h')
-rw-r--r-- | servers/rendering/rendering_server_canvas.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/rendering_server_canvas.h b/servers/rendering/rendering_server_canvas.h index 83b76539c4..89f511a8fb 100644 --- a/servers/rendering/rendering_server_canvas.h +++ b/servers/rendering/rendering_server_canvas.h @@ -192,7 +192,7 @@ public: void canvas_item_set_update_when_visible(RID p_item, bool p_update); void canvas_item_add_line(RID p_item, const Point2 &p_from, const Point2 &p_to, const Color &p_color, float p_width = 1.0); - void canvas_item_add_polyline(RID p_item, const Vector<Point2> &p_points, const Vector<Color> &p_colors, float p_width = 1.0); + void canvas_item_add_polyline(RID p_item, const Vector<Point2> &p_points, const Vector<Color> &p_colors, float p_width = 1.0, bool p_antialiased = false); void canvas_item_add_multiline(RID p_item, const Vector<Point2> &p_points, const Vector<Color> &p_colors, float p_width = 1.0); void canvas_item_add_rect(RID p_item, const Rect2 &p_rect, const Color &p_color); void canvas_item_add_circle(RID p_item, const Point2 &p_pos, float p_radius, const Color &p_color); |