mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 06:52:23 +00:00
LibAccelGfx+LibWeb: Implement rounded corners rectangle painting
For now corners antialiasing is missing.
This commit is contained in:
parent
0e1bd54896
commit
53c015695e
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 53c015695e
Pull-request: https://github.com/SerenityOS/serenity/pull/22003
5 changed files with 106 additions and 2 deletions
|
@ -137,6 +137,12 @@ void delete_texture(Texture const& texture)
|
|||
verify_no_error();
|
||||
}
|
||||
|
||||
void set_uniform(Uniform const& uniform, float value1, float value2)
|
||||
{
|
||||
glUniform2f(uniform.id, value1, value2);
|
||||
verify_no_error();
|
||||
}
|
||||
|
||||
void set_uniform(Uniform const& uniform, float value1, float value2, float value3, float value4)
|
||||
{
|
||||
glUniform4f(uniform.id, value1, value2, value3, value4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue