@types/webgl2
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

Installation

npm install --save @types/webgl2

Summary

This package contains type definitions for webgl2 (https://www.khronos.org/registry/webgl/specs/latest/2.0/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webgl2.

index.d.ts

interface HTMLCanvasElement extends HTMLElement {
    getContext(
        contextId: "webgl2" | "experimental-webgl2",
        contextAttributes?: WebGLContextAttributes,
    ): WebGL2RenderingContext | null;
}

interface ImageBitmap {
    readonly width: number;
    readonly height: number;
    close(): void;
}

interface WebGLQuery {
}

declare var WebGLQuery: {
    prototype: WebGLQuery;
    new(): WebGLQuery;
};

interface WebGLSampler {
}

declare var WebGLSampler: {
    prototype: WebGLSampler;
    new(): WebGLSampler;
};

interface WebGLSync {
}

declare var WebGLSync: {
    prototype: WebGLSync;
    new(): WebGLSync;
};

interface WebGLTransformFeedback {
}

declare var WebGLTransformFeedback: {
    prototype: WebGLTransformFeedback;
    new(): WebGLTransformFeedback;
};

interface WebGLVertexArrayObject {
}

declare var WebGLVertexArrayObject: {
    prototype: WebGLVertexArrayObject;
    new(): WebGLVertexArrayObject;
};

Additional Details

  • Last updated: Tue, 30 Jan 2024 21:35:45 GMT
  • Dependencies: none

Credits

These definitions were written by Nico Kemnitz, and Adrian Blumer.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/webgl2

Weekly Downloads

104,829

Version

0.0.11

License

MIT

Unpacked Size

4.63 kB

Total Files

5

Last publish

Collaborators

  • types