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:
parent
b0c2aee2e4
commit
58f882200c
19 changed files with 903 additions and 21 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue