mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:17:44 +00:00
LibAccelGfx+LibWeb: Add basic line painting support
For now only solid line style is supported.
This commit is contained in:
parent
f1824a524d
commit
28118623f5
3 changed files with 42 additions and 2 deletions
|
@ -46,6 +46,9 @@ public:
|
|||
Bilinear,
|
||||
};
|
||||
|
||||
void draw_line(Gfx::IntPoint a, Gfx::IntPoint b, float thickness, Gfx::Color color);
|
||||
void draw_line(Gfx::FloatPoint a, Gfx::FloatPoint b, float thickness, Gfx::Color color);
|
||||
|
||||
void draw_scaled_bitmap(Gfx::FloatRect const& dst_rect, Gfx::Bitmap const&, Gfx::FloatRect const& src_rect, ScalingMode = ScalingMode::NearestNeighbor);
|
||||
void draw_scaled_bitmap(Gfx::IntRect const& dst_rect, Gfx::Bitmap const&, Gfx::IntRect const& src_rect, ScalingMode = ScalingMode::NearestNeighbor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue