mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWeb: Add ability to present LibGL framebuffer and add clearing
This commit is contained in:
parent
68d9d4e247
commit
076c9772a4
Notes:
sideshowbarker
2024-07-17 10:16:03 +09:00
Author: https://github.com/Lubrsi
Commit: 076c9772a4
Pull-request: https://github.com/SerenityOS/serenity/pull/14184
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/sunverwerth
8 changed files with 131 additions and 1 deletions
|
@ -13,6 +13,14 @@ dictionary WebGLContextAttributes {
|
|||
};
|
||||
|
||||
interface mixin WebGLRenderingContextBase {
|
||||
// NOTE: Functions that have the [WebGLHandlesContextLoss] extended attribute in the spec do not have them here.
|
||||
// This is because context loss is handled manually on a function by function basis instead of having to add it to the
|
||||
// IDL code generator. This also allows us to handle the return type ourselves instead of adding the complexity of the
|
||||
// code generator working out the return type and returning the appropriate value to return on context loss.
|
||||
|
||||
undefined clear(GLbitfield mask);
|
||||
undefined clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
|
||||
// Enums
|
||||
// ClearBufferMask
|
||||
const GLenum DEPTH_BUFFER_BIT = 0x00000100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue