@types/gl-texture2d
Advanced tools
Comparing version 2.1.3 to 2.1.4
// Type definitions for gl-texture2d 2.1 | ||
// Project: https://github.com/stackgl/gl-texture2d | ||
// Definitions by: Mathias Paumgarten <https://github.com/MathiasPaumgarten> | ||
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +5,0 @@ // TypeScript Version: 2.3 |
{ | ||
"name": "@types/gl-texture2d", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "TypeScript definitions for gl-texture2d", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl-texture2d", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Mathias Paumgarten", | ||
"url": "https://github.com/MathiasPaumgarten", | ||
"githubUsername": "MathiasPaumgarten" | ||
"name": "DefinitelyTyped", | ||
"url": "https://github.com/DefinitelyTyped", | ||
"githubUsername": "DefinitelyTyped" | ||
} | ||
@@ -24,4 +25,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "95a7d26a6514dd0835fce2324f7447c2f404d1621e10583e6064bae8ff1024b9", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "d9747c76df4907339967db491f467d35b12d8ec38fb5c6181b88979c870cf9e7", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -9,5 +9,55 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl-texture2d. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl-texture2d/index.d.ts) | ||
````ts | ||
// Type definitions for gl-texture2d 2.1 | ||
// Project: https://github.com/stackgl/gl-texture2d | ||
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import { NdArray } from "ndarray"; | ||
type GLenum = number; | ||
type InputType = ImageData | HTMLCanvasElement | HTMLImageElement | HTMLVideoElement; | ||
interface RawObject { | ||
width: number; | ||
height: number; | ||
raw: ArrayBufferView | InputType | ImageBitmap; | ||
} | ||
declare class Texture { | ||
shape: [number, number]; | ||
wrap: [GLenum, GLenum]; | ||
magFilter: GLenum; | ||
minFilter: GLenum; | ||
mipSamples: GLenum; | ||
readonly gl: WebGLRenderingContext; | ||
readonly handle: WebGLTexture; | ||
readonly format: GLenum; | ||
readonly type: GLenum; | ||
bind(id?: number): number; | ||
dispose(): void; | ||
generateMipmap(): void; | ||
setPixels(data: InputType | RawObject | NdArray, offset?: [number, number], mipLevel?: GLenum): void; | ||
} | ||
declare function texture2d(gl: WebGLRenderingContext, array: NdArray): Texture; | ||
declare function texture2d( | ||
gl: WebGLRenderingContext, | ||
input: InputType | RawObject | [number, number], | ||
format?: GLenum, | ||
type?: GLenum, | ||
): Texture; | ||
export = texture2d; | ||
```` | ||
### Additional Details | ||
* Last updated: Sat, 08 May 2021 17:31:23 GMT | ||
* Last updated: Thu, 23 Dec 2021 23:34:42 GMT | ||
* Dependencies: [@types/ndarray](https://npmjs.com/package/@types/ndarray) | ||
@@ -17,2 +67,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [Mathias Paumgarten](https://github.com/MathiasPaumgarten). | ||
These definitions were written by [DefinitelyTyped](https://github.com/DefinitelyTyped). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5221
0
67