@thi.ng/webgl 6.1.12 → 6.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/buffer.d.ts +2 -2
- package/error.d.ts +1 -1
- package/fbo.d.ts +1 -1
- package/geo/cube.d.ts +1 -1
- package/geo/quad.d.ts +1 -1
- package/package.json +22 -22
- package/shader.d.ts +1 -1
- package/texture.d.ts +4 -4
package/CHANGELOG.md
CHANGED
package/buffer.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export declare class WebGLArrayBuffer<T extends TypedArray> implements IWebGLBuf
|
|
|
14
14
|
set(data: T, mode?: number): void;
|
|
15
15
|
setChunk(data: T, offset?: number): void;
|
|
16
16
|
}
|
|
17
|
-
export declare const defBuffer: (gl: WebGLRenderingContext, data?: TypedArray
|
|
17
|
+
export declare const defBuffer: (gl: WebGLRenderingContext, data?: TypedArray, target?: number, mode?: number) => WebGLArrayBuffer<Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array>;
|
|
18
18
|
export declare const compileModel: (gl: WebGLRenderingContext, spec: ModelSpec, mode?: number) => ModelSpec;
|
|
19
19
|
export declare const compileIndices: (gl: WebGLRenderingContext, index: IndexBufferSpec | undefined, mode?: GLenum) => IndexBufferSpec | undefined;
|
|
20
20
|
export declare const compileVAO: (gl: WebGLRenderingContext, spec: ModelSpec) => WebGLVertexArrayObject | undefined;
|
|
21
|
-
export declare const compileAttribPool: (gl: WebGLRenderingContext, pool: AttribPool, ids?: string[]
|
|
21
|
+
export declare const compileAttribPool: (gl: WebGLRenderingContext, pool: AttribPool, ids?: string[], target?: number, mode?: number) => ModelAttributeSpecs;
|
|
22
22
|
//# sourceMappingURL=buffer.d.ts.map
|
package/error.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export declare const WebGLError: {
|
|
|
9
9
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
10
10
|
stackTraceLimit: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const error: (msg?: string
|
|
12
|
+
export declare const error: (msg?: string) => never;
|
|
13
13
|
//# sourceMappingURL=error.d.ts.map
|
package/fbo.d.ts
CHANGED
|
@@ -26,5 +26,5 @@ export declare class FBO implements IFbo {
|
|
|
26
26
|
configure(opts: Partial<FboOpts>, unbind?: boolean): boolean;
|
|
27
27
|
validate(): boolean;
|
|
28
28
|
}
|
|
29
|
-
export declare const defFBO: (gl: WebGLRenderingContext, opts?: Partial<FboOpts>
|
|
29
|
+
export declare const defFBO: (gl: WebGLRenderingContext, opts?: Partial<FboOpts>) => FBO;
|
|
30
30
|
//# sourceMappingURL=fbo.d.ts.map
|
package/geo/cube.d.ts
CHANGED
package/geo/quad.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export interface QuadOpts {
|
|
|
18
18
|
*/
|
|
19
19
|
center: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare const defQuadModel: (opts?: Partial<QuadOpts>
|
|
21
|
+
export declare const defQuadModel: (opts?: Partial<QuadOpts>) => ModelSpec;
|
|
22
22
|
//# sourceMappingURL=quad.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/webgl",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.13",
|
|
4
4
|
"description": "WebGL & GLSL abstraction layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,30 +34,30 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/adapt-dpi": "^2.1.
|
|
38
|
-
"@thi.ng/api": "^8.3.
|
|
39
|
-
"@thi.ng/associative": "^6.1.
|
|
40
|
-
"@thi.ng/checks": "^3.
|
|
41
|
-
"@thi.ng/equiv": "^2.1.
|
|
42
|
-
"@thi.ng/errors": "^2.1.
|
|
43
|
-
"@thi.ng/logger": "^1.1.
|
|
44
|
-
"@thi.ng/matrices": "^2.1.
|
|
45
|
-
"@thi.ng/memoize": "^3.1.
|
|
46
|
-
"@thi.ng/pixel": "^3.4.
|
|
47
|
-
"@thi.ng/shader-ast": "^0.12.
|
|
48
|
-
"@thi.ng/shader-ast-glsl": "^0.4.
|
|
49
|
-
"@thi.ng/shader-ast-stdlib": "^0.12.
|
|
50
|
-
"@thi.ng/transducers": "^8.3.
|
|
51
|
-
"@thi.ng/vector-pools": "^3.1.
|
|
52
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/adapt-dpi": "^2.1.7",
|
|
38
|
+
"@thi.ng/api": "^8.3.7",
|
|
39
|
+
"@thi.ng/associative": "^6.1.9",
|
|
40
|
+
"@thi.ng/checks": "^3.2.0",
|
|
41
|
+
"@thi.ng/equiv": "^2.1.7",
|
|
42
|
+
"@thi.ng/errors": "^2.1.7",
|
|
43
|
+
"@thi.ng/logger": "^1.1.7",
|
|
44
|
+
"@thi.ng/matrices": "^2.1.13",
|
|
45
|
+
"@thi.ng/memoize": "^3.1.7",
|
|
46
|
+
"@thi.ng/pixel": "^3.4.4",
|
|
47
|
+
"@thi.ng/shader-ast": "^0.12.9",
|
|
48
|
+
"@thi.ng/shader-ast-glsl": "^0.4.9",
|
|
49
|
+
"@thi.ng/shader-ast-stdlib": "^0.12.2",
|
|
50
|
+
"@thi.ng/transducers": "^8.3.4",
|
|
51
|
+
"@thi.ng/vector-pools": "^3.1.13",
|
|
52
|
+
"@thi.ng/vectors": "^7.5.5"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@microsoft/api-extractor": "^7.
|
|
56
|
-
"@thi.ng/testament": "^0.2.
|
|
55
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
56
|
+
"@thi.ng/testament": "^0.2.8",
|
|
57
57
|
"rimraf": "^3.0.2",
|
|
58
58
|
"tools": "^0.0.1",
|
|
59
|
-
"typedoc": "^0.22.
|
|
60
|
-
"typescript": "^4.
|
|
59
|
+
"typedoc": "^0.22.17",
|
|
60
|
+
"typescript": "^4.7.3"
|
|
61
61
|
},
|
|
62
62
|
"keywords": [
|
|
63
63
|
"2d",
|
|
@@ -215,5 +215,5 @@
|
|
|
215
215
|
],
|
|
216
216
|
"year": 2014
|
|
217
217
|
},
|
|
218
|
-
"gitHead": "
|
|
218
|
+
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
|
|
219
219
|
}
|
package/shader.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class Shader implements IShader {
|
|
|
19
19
|
prepareState(state?: Partial<ShaderState>): void;
|
|
20
20
|
protected setState(id: number, val: GLenum | boolean): void;
|
|
21
21
|
}
|
|
22
|
-
export declare const defShader: (gl: WebGLRenderingContext, spec: ShaderSpec, opts?: Partial<DefShaderOpts>
|
|
22
|
+
export declare const defShader: (gl: WebGLRenderingContext, spec: ShaderSpec, opts?: Partial<DefShaderOpts>) => Shader;
|
|
23
23
|
export declare const shaderSourceFromAST: (spec: ShaderSpec, type: ShaderType, version: GLSLVersion, opts?: Partial<DefShaderOpts>) => string;
|
|
24
24
|
export declare const prepareShaderSource: (spec: ShaderSpec, type: ShaderType, version: GLSLVersion) => string;
|
|
25
25
|
export declare const compileShader: (gl: WebGLRenderingContext, type: GLenum, src: string) => WebGLShader;
|
package/texture.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITexture, TextureFilter, TextureFormat, TextureOpts, TextureRepeat, TextureTarget, TextureType } from "./api/texture.js";
|
|
2
|
-
export declare const bindTextures: (textures?: ITexture[]
|
|
3
|
-
export declare const unbindTextures: (textures?: ITexture[]
|
|
2
|
+
export declare const bindTextures: (textures?: ITexture[]) => void;
|
|
3
|
+
export declare const unbindTextures: (textures?: ITexture[]) => void;
|
|
4
4
|
export declare class Texture implements ITexture {
|
|
5
5
|
gl: WebGLRenderingContext;
|
|
6
6
|
tex: WebGLTexture;
|
|
@@ -23,7 +23,7 @@ export declare class Texture implements ITexture {
|
|
|
23
23
|
unbind(id?: number): boolean;
|
|
24
24
|
release(): boolean;
|
|
25
25
|
}
|
|
26
|
-
export declare const defTexture: (gl: WebGLRenderingContext, opts?: Partial<TextureOpts>
|
|
26
|
+
export declare const defTexture: (gl: WebGLRenderingContext, opts?: Partial<TextureOpts>) => Texture;
|
|
27
27
|
/**
|
|
28
28
|
* Creates cube map texture from given 6 `face` texture sources. The
|
|
29
29
|
* given options are shared by each each side/face of the cube map. The
|
|
@@ -59,5 +59,5 @@ export declare const defTextureCubeMap: (gl: WebGLRenderingContext, faces: (Arra
|
|
|
59
59
|
* @param format -
|
|
60
60
|
* @param type -
|
|
61
61
|
*/
|
|
62
|
-
export declare const defTextureFloat: (gl: WebGLRenderingContext, data: Float32Array | undefined | null, width: number, height: number, format?: TextureFormat
|
|
62
|
+
export declare const defTextureFloat: (gl: WebGLRenderingContext, data: Float32Array | undefined | null, width: number, height: number, format?: TextureFormat, type?: TextureType) => Texture;
|
|
63
63
|
//# sourceMappingURL=texture.d.ts.map
|