1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

LibAccelGfx+LibWeb: Implement rounded corners rectangle painting

For now corners antialiasing is missing.
This commit is contained in:
Aliaksandr Kalenik 2023-11-20 17:25:22 +01:00 committed by Andreas Kling
parent 0e1bd54896
commit 53c015695e
5 changed files with 106 additions and 2 deletions

View file

@ -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);