mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:58:14 +00:00
LibAccelGfx+LibWeb: Implement SetClipRect and ClearClipRect commands
This commit is contained in:
parent
9e4d697d23
commit
01d938c77b
5 changed files with 32 additions and 3 deletions
|
@ -255,4 +255,17 @@ void delete_framebuffer(Framebuffer const& framebuffer)
|
|||
verify_no_error();
|
||||
}
|
||||
|
||||
void enable_scissor_test(Gfx::IntRect rect)
|
||||
{
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
glScissor(rect.left(), rect.top(), rect.width(), rect.height());
|
||||
verify_no_error();
|
||||
}
|
||||
|
||||
void disable_scissor_test()
|
||||
{
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
verify_no_error();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue