UNPKG

944 BTypeScriptView Raw
1interface HTMLCanvasElement extends HTMLElement {
2 getContext(
3 contextId: "webgl2" | "experimental-webgl2",
4 contextAttributes?: WebGLContextAttributes,
5 ): WebGL2RenderingContext | null;
6}
7
8interface ImageBitmap {
9 readonly width: number;
10 readonly height: number;
11 close(): void;
12}
13
14interface WebGLQuery {
15}
16
17declare var WebGLQuery: {
18 prototype: WebGLQuery;
19 new(): WebGLQuery;
20};
21
22interface WebGLSampler {
23}
24
25declare var WebGLSampler: {
26 prototype: WebGLSampler;
27 new(): WebGLSampler;
28};
29
30interface WebGLSync {
31}
32
33declare var WebGLSync: {
34 prototype: WebGLSync;
35 new(): WebGLSync;
36};
37
38interface WebGLTransformFeedback {
39}
40
41declare var WebGLTransformFeedback: {
42 prototype: WebGLTransformFeedback;
43 new(): WebGLTransformFeedback;
44};
45
46interface WebGLVertexArrayObject {
47}
48
49declare var WebGLVertexArrayObject: {
50 prototype: WebGLVertexArrayObject;
51 new(): WebGLVertexArrayObject;
52};