mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +00:00
LibGfx: Add draw_triangle() for drawing filled triangles
This commit is contained in:
parent
2b7fc08db3
commit
acd4676803
Notes:
sideshowbarker
2024-07-19 07:31:21 +09:00
Author: https://github.com/sunverwerth
Commit: acd4676803
Pull-request: https://github.com/SerenityOS/serenity/pull/1831
Reviewed-by: https://github.com/awesomekling
2 changed files with 69 additions and 0 deletions
|
@ -51,6 +51,7 @@ public:
|
|||
void draw_rect(const Rect&, Color, bool rough = false);
|
||||
void draw_bitmap(const Point&, const CharacterBitmap&, Color = Color());
|
||||
void draw_bitmap(const Point&, const GlyphBitmap&, Color = Color());
|
||||
void draw_triangle(const Point&, const Point&, const Point&, Color);
|
||||
void draw_ellipse_intersecting(const Rect&, Color, int thickness = 1);
|
||||
void set_pixel(const Point&, Color);
|
||||
void draw_line(const Point&, const Point&, Color, int thickness = 1, bool dotted = false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue