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

LibWeb: Add the ability to retrieve a WebGL context from getContext

This commit is contained in:
Luke Wilde 2022-06-04 04:22:42 +01:00 committed by Linus Groh
parent b0c2aee2e4
commit 58f882200c
19 changed files with 903 additions and 21 deletions

View file

@ -1,9 +1,12 @@
#import <HTML/CanvasRenderingContext2D.idl>
#import <HTML/HTMLElement.idl>
#import <WebGL/WebGLRenderingContext.idl>
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
interface HTMLCanvasElement : HTMLElement {
CanvasRenderingContext2D? getContext(DOMString contextId);
RenderingContext? getContext(DOMString contextId, optional any options = null);
attribute unsigned long width;
attribute unsigned long height;