1 | # Installation
|
2 | > `npm install --save @types/webgl2`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for webgl2 (https://www.khronos.org/registry/webgl/specs/latest/2.0/).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webgl2.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webgl2/index.d.ts)
|
10 | ````ts
|
11 | interface HTMLCanvasElement extends HTMLElement {
|
12 | getContext(
|
13 | contextId: "webgl2" | "experimental-webgl2",
|
14 | contextAttributes?: WebGLContextAttributes,
|
15 | ): WebGL2RenderingContext | null;
|
16 | }
|
17 |
|
18 | interface ImageBitmap {
|
19 | readonly width: number;
|
20 | readonly height: number;
|
21 | close(): void;
|
22 | }
|
23 |
|
24 | interface WebGLQuery {
|
25 | }
|
26 |
|
27 | declare var WebGLQuery: {
|
28 | prototype: WebGLQuery;
|
29 | new(): WebGLQuery;
|
30 | };
|
31 |
|
32 | interface WebGLSampler {
|
33 | }
|
34 |
|
35 | declare var WebGLSampler: {
|
36 | prototype: WebGLSampler;
|
37 | new(): WebGLSampler;
|
38 | };
|
39 |
|
40 | interface WebGLSync {
|
41 | }
|
42 |
|
43 | declare var WebGLSync: {
|
44 | prototype: WebGLSync;
|
45 | new(): WebGLSync;
|
46 | };
|
47 |
|
48 | interface WebGLTransformFeedback {
|
49 | }
|
50 |
|
51 | declare var WebGLTransformFeedback: {
|
52 | prototype: WebGLTransformFeedback;
|
53 | new(): WebGLTransformFeedback;
|
54 | };
|
55 |
|
56 | interface WebGLVertexArrayObject {
|
57 | }
|
58 |
|
59 | declare var WebGLVertexArrayObject: {
|
60 | prototype: WebGLVertexArrayObject;
|
61 | new(): WebGLVertexArrayObject;
|
62 | };
|
63 |
|
64 | ````
|
65 |
|
66 | ### Additional Details
|
67 | * Last updated: Tue, 30 Jan 2024 21:35:45 GMT
|
68 | * Dependencies: none
|
69 |
|
70 | # Credits
|
71 | These definitions were written by [Nico Kemnitz](https://github.com/nkemnitz), and [Adrian Blumer](https://github.com/karhu).
|
72 |
|
\ | No newline at end of file |