@types/gl
Version:
TypeScript definitions for gl
47 lines (36 loc) • 1.39 kB
Markdown
# Installation
> `npm install --save @types/gl`
# Summary
This package contains type definitions for gl (https://github.com/stackgl/headless-gl#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl/index.d.ts)
````ts
declare namespace createContext {
interface STACKGL_destroy_context {
destroy(): void;
}
interface STACKGL_resize_drawingbuffer {
resize(width: GLint, height: GLint): void;
}
interface StackGLExtension {
getExtension(extensionName: "STACKGL_destroy_context"): STACKGL_destroy_context | null;
getExtension(extensionName: "STACKGL_resize_drawingbuffer"): STACKGL_resize_drawingbuffer | null;
}
const WebGLRenderingContext: WebGLRenderingContext & StackGLExtension & {
new(): WebGLRenderingContext & StackGLExtension;
prototype: WebGLRenderingContext & StackGLExtension;
};
}
declare function createContext(
width: number,
height: number,
options?: WebGLContextAttributes,
): WebGLRenderingContext & createContext.StackGLExtension;
export = createContext;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: none
# Credits
These definitions were written by .