@thi.ng/webgl 6.0.2 → 6.0.4

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 CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@6.0.3...@thi.ng/webgl@6.0.4) (2021-10-15)
7
+
8
+ **Note:** Version bump only for package @thi.ng/webgl
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@6.0.2...@thi.ng/webgl@6.0.3) (2021-10-15)
15
+
16
+ **Note:** Version bump only for package @thi.ng/webgl
17
+
18
+
19
+
20
+
21
+
6
22
  ## [6.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@6.0.1...@thi.ng/webgl@6.0.2) (2021-10-13)
7
23
 
8
24
  **Note:** Version bump only for package @thi.ng/webgl
package/README.md CHANGED
@@ -100,7 +100,7 @@ node --experimental-repl-await
100
100
  > const webgl = await import("@thi.ng/webgl");
101
101
  ```
102
102
 
103
- Package sizes (gzipped, pre-treeshake): ESM: 12.21 KB
103
+ Package sizes (gzipped, pre-treeshake): ESM: 12.14 KB
104
104
 
105
105
  ## Dependencies
106
106
 
package/buffer.js CHANGED
@@ -3,10 +3,6 @@ import { DrawMode, } from "./api/model.js";
3
3
  import { isGL2Context } from "./checks.js";
4
4
  import { error } from "./error.js";
5
5
  export class WebGLArrayBuffer {
6
- gl;
7
- buffer;
8
- target;
9
- mode;
10
6
  constructor(gl, data, target = gl.ARRAY_BUFFER, mode = gl.STATIC_DRAW) {
11
7
  this.gl = gl;
12
8
  this.buffer = gl.createBuffer() || error("error creating WebGL buffer");
package/fbo.js CHANGED
@@ -21,10 +21,6 @@ const GL_MAX_COLOR_ATTACHMENTS_WEBGL = 0x8cdf;
21
21
  * {@link https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers}
22
22
  */
23
23
  export class FBO {
24
- gl;
25
- fbo;
26
- ext;
27
- maxAttachments;
28
24
  constructor(gl, opts) {
29
25
  this.gl = gl;
30
26
  this.fbo = gl.createFramebuffer() || error("error creating FBO");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/webgl",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
4
4
  "description": "WebGL & GLSL abstraction layer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,25 +34,25 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/adapt-dpi": "^2.0.1",
38
- "@thi.ng/api": "^8.0.1",
39
- "@thi.ng/associative": "^6.0.1",
40
- "@thi.ng/checks": "^3.0.1",
41
- "@thi.ng/equiv": "^2.0.1",
42
- "@thi.ng/errors": "^2.0.1",
43
- "@thi.ng/logger": "^1.0.1",
44
- "@thi.ng/matrices": "^2.0.1",
45
- "@thi.ng/memoize": "^3.0.1",
46
- "@thi.ng/pixel": "^2.1.0",
47
- "@thi.ng/shader-ast": "^0.11.1",
48
- "@thi.ng/shader-ast-glsl": "^0.3.1",
49
- "@thi.ng/shader-ast-stdlib": "^0.10.1",
50
- "@thi.ng/transducers": "^8.0.1",
51
- "@thi.ng/vector-pools": "^3.0.1",
52
- "@thi.ng/vectors": "^7.0.1"
37
+ "@thi.ng/adapt-dpi": "^2.0.3",
38
+ "@thi.ng/api": "^8.0.3",
39
+ "@thi.ng/associative": "^6.0.3",
40
+ "@thi.ng/checks": "^3.0.3",
41
+ "@thi.ng/equiv": "^2.0.3",
42
+ "@thi.ng/errors": "^2.0.3",
43
+ "@thi.ng/logger": "^1.0.3",
44
+ "@thi.ng/matrices": "^2.0.3",
45
+ "@thi.ng/memoize": "^3.0.3",
46
+ "@thi.ng/pixel": "^2.1.2",
47
+ "@thi.ng/shader-ast": "^0.11.3",
48
+ "@thi.ng/shader-ast-glsl": "^0.3.3",
49
+ "@thi.ng/shader-ast-stdlib": "^0.10.3",
50
+ "@thi.ng/transducers": "^8.0.3",
51
+ "@thi.ng/vector-pools": "^3.0.3",
52
+ "@thi.ng/vectors": "^7.0.3"
53
53
  },
54
54
  "devDependencies": {
55
- "@thi.ng/testament": "^0.1.1"
55
+ "@thi.ng/testament": "^0.1.3"
56
56
  },
57
57
  "keywords": [
58
58
  "2d",
@@ -210,5 +210,5 @@
210
210
  ],
211
211
  "year": 2014
212
212
  },
213
- "gitHead": "ad5ea82893d1154c0ecc7a1886a4670c1d418222"
213
+ "gitHead": "1fb38cac74d6c009d96855c28784a267a81badf1"
214
214
  }
package/rbo.js CHANGED
@@ -1,10 +1,5 @@
1
1
  import { error } from "./error.js";
2
2
  export class RBO {
3
- gl;
4
- buffer;
5
- format;
6
- width;
7
- height;
8
3
  constructor(gl, opts) {
9
4
  this.gl = gl;
10
5
  this.buffer = gl.createRenderbuffer() || error("error creating RBO");
package/shader.js CHANGED
@@ -21,14 +21,9 @@ import { GLSL_HEADER, NO_PREFIXES, SYNTAX } from "./syntax.js";
21
21
  import { UNIFORM_SETTERS } from "./uniforms.js";
22
22
  const ERROR_REGEXP = /ERROR: \d+:(\d+): (.*)/;
23
23
  export class Shader {
24
- gl;
25
- program;
26
- attribs;
27
- uniforms;
28
- state;
29
- warnAttrib = doOnce((id) => LOGGER.warn(`unknown attrib: ${id} (no further warnings will be shown...)`));
30
- warnUni = doOnce((id) => LOGGER.warn(`unknown uniform: ${id} (no further warnings will be shown...)`));
31
24
  constructor(gl, program, attribs, uniforms, state) {
25
+ this.warnAttrib = doOnce((id) => LOGGER.warn(`unknown attrib: ${id} (no further warnings will be shown...)`));
26
+ this.warnUni = doOnce((id) => LOGGER.warn(`unknown uniform: ${id} (no further warnings will be shown...)`));
32
27
  this.gl = gl;
33
28
  this.program = program;
34
29
  this.attribs = attribs;
package/texture.js CHANGED
@@ -13,14 +13,6 @@ const $bind = (op) => (textures) => {
13
13
  export const bindTextures = $bind("bind");
14
14
  export const unbindTextures = $bind("unbind");
15
15
  export class Texture {
16
- gl;
17
- tex;
18
- target;
19
- format;
20
- filter;
21
- wrap;
22
- type;
23
- size;
24
16
  constructor(gl, opts = {}) {
25
17
  this.gl = gl;
26
18
  this.tex = gl.createTexture() || error("error creating WebGL texture");