@types/webgl-ext
Advanced tools
Comparing version
@@ -11,19 +11,19 @@ // Type definitions for WebGL Extensions | ||
interface HTMLCanvasElement { | ||
getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): (WebGLRenderingContext & WebGL1Extensions) | null; | ||
getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): (WebGLRenderingContext & WebGL1Extensions) | null; | ||
} | ||
interface WebGL1Extensions { | ||
getExtension(name: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float; | ||
getExtension(name: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float; | ||
getExtension(name: "WEBGL_compressed_texture_atc"): WEBGL_compressed_texture_atc; | ||
getExtension(name: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1; | ||
getExtension(name: "WEBGL_compressed_texture_pvrtc"): WEBKIT_WEBGL_compressed_texture_pvrtc; | ||
getExtension(name: "WEBGL_compressed_texture_atc"): WEBGL_compressed_texture_atc; | ||
getExtension(name: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1; | ||
getExtension(name: "WEBGL_compressed_texture_pvrtc"): WEBKIT_WEBGL_compressed_texture_pvrtc; | ||
// Prefixed versions appearing in the wild as per February 2018 | ||
getExtension(name: "WEBKIT_EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic; // Chrome | ||
getExtension(name: "WEBKIT_WEBGL_compressed_texture_atc"): WEBGL_compressed_texture_atc; // Android | ||
getExtension(name: "WEBKIT_WEBGL_compressed_texture_pvrtc"): WEBKIT_WEBGL_compressed_texture_pvrtc; // Safari iOS | ||
getExtension(name: "WEBKIT_WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc; // Chrome | ||
getExtension(name: "WEBKIT_WEBGL_depth_texture"): WEBGL_depth_texture; // Chrome | ||
getExtension(name: "WEBKIT_WEBGL_lose_context"): WEBGL_lose_context; // Chrome | ||
// Prefixed versions appearing in the wild as per February 2018 | ||
getExtension(name: "WEBKIT_EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic; // Chrome | ||
getExtension(name: "WEBKIT_WEBGL_compressed_texture_atc"): WEBGL_compressed_texture_atc; // Android | ||
getExtension(name: "WEBKIT_WEBGL_compressed_texture_pvrtc"): WEBKIT_WEBGL_compressed_texture_pvrtc; // Safari iOS | ||
getExtension(name: "WEBKIT_WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc; // Chrome | ||
getExtension(name: "WEBKIT_WEBGL_depth_texture"): WEBGL_depth_texture; // Chrome | ||
getExtension(name: "WEBKIT_WEBGL_lose_context"): WEBGL_lose_context; // Chrome | ||
} | ||
@@ -54,31 +54,31 @@ | ||
interface EXT_color_buffer_half_float { | ||
readonly RGBA16F_EXT: number; | ||
readonly RGB16F_EXT: number; | ||
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number; | ||
readonly UNSIGNED_NORMALIZED_EXT: number; | ||
readonly RGBA16F_EXT: number; | ||
readonly RGB16F_EXT: number; | ||
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number; | ||
readonly UNSIGNED_NORMALIZED_EXT: number; | ||
} | ||
interface OES_vertex_array_object { | ||
// TS's lib.dom (as of v3.1.3) does not specify the nulls | ||
createVertexArrayOES(): WebGLVertexArrayObjectOES | null; | ||
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; | ||
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): boolean; | ||
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; | ||
// TS's lib.dom (as of v3.1.3) does not specify the nulls | ||
createVertexArrayOES(): WebGLVertexArrayObjectOES | null; | ||
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; | ||
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): boolean; | ||
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; | ||
} | ||
interface WEBGL_compressed_texture_atc { | ||
readonly COMPRESSED_RGB_ATC_WEBGL: number; | ||
readonly COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: number; | ||
readonly COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: number; | ||
readonly COMPRESSED_RGB_ATC_WEBGL: number; | ||
readonly COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: number; | ||
readonly COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: number; | ||
} | ||
interface WEBGL_compressed_texture_etc1 { | ||
readonly COMPRESSED_RGB_ETC1_WEBGL: number; | ||
readonly COMPRESSED_RGB_ETC1_WEBGL: number; | ||
} | ||
interface WEBKIT_WEBGL_compressed_texture_pvrtc { | ||
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: number; | ||
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: number; | ||
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: number; | ||
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: number; | ||
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: number; | ||
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: number; | ||
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: number; | ||
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: number; | ||
} |
{ | ||
"name": "@types/webgl-ext", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "TypeScript definitions for WebGL Extensions", | ||
@@ -14,11 +14,12 @@ "license": "MIT", | ||
"main": "", | ||
"types": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/webgl-ext" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "c4fbe5a8c8557daa65dacda7d74d61020264991e65ea85898689a7f2e6692e16", | ||
"typeScriptVersion": "2.7" | ||
"typesPublisherContentHash": "2b6c73e4bfa9bb3c1f8d6a1bc06f5ed784857057ee244020f13ff3d9e95377dc", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webgl-ext | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webgl-ext. | ||
Additional Details | ||
* Last updated: Tue, 23 Oct 2018 17:03:26 GMT | ||
### Additional Details | ||
* Last updated: Fri, 15 May 2020 13:12:56 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Arthur Langereis <https://github.com/zenmumbler>. | ||
These definitions were written by [Arthur Langereis](https://github.com/zenmumbler). |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6285
1.63%0
-100%