@vpmedia/phaser 1.56.0 → 1.58.0

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.
Files changed (39) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/phaser/core/game.js +9 -17
  4. package/src/phaser/display/webgl/blend_manager.js +1 -1
  5. package/src/phaser/display/webgl/filter_manager.js +1 -1
  6. package/src/phaser/display/webgl/filter_texture.js +1 -1
  7. package/src/phaser/display/webgl/graphics_data.js +1 -1
  8. package/src/phaser/display/webgl/renderer.js +9 -7
  9. package/src/phaser/display/webgl/shader/complex.js +1 -1
  10. package/src/phaser/display/webgl/shader/fast.js +1 -1
  11. package/src/phaser/display/webgl/shader/primitive.js +1 -1
  12. package/src/phaser/display/webgl/shader/strip.js +1 -1
  13. package/src/phaser/display/webgl/shader_manager.js +1 -1
  14. package/src/phaser/display/webgl/stencil_manager.js +1 -1
  15. package/src/phaser/display/webgl/util.js +14 -4
  16. package/types/phaser/core/game.d.ts.map +1 -1
  17. package/types/phaser/display/webgl/blend_manager.d.ts +3 -7
  18. package/types/phaser/display/webgl/blend_manager.d.ts.map +1 -1
  19. package/types/phaser/display/webgl/filter_manager.d.ts +3 -7
  20. package/types/phaser/display/webgl/filter_manager.d.ts.map +1 -1
  21. package/types/phaser/display/webgl/filter_texture.d.ts +3 -7
  22. package/types/phaser/display/webgl/filter_texture.d.ts.map +1 -1
  23. package/types/phaser/display/webgl/graphics_data.d.ts +3 -7
  24. package/types/phaser/display/webgl/graphics_data.d.ts.map +1 -1
  25. package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
  26. package/types/phaser/display/webgl/shader/complex.d.ts +3 -7
  27. package/types/phaser/display/webgl/shader/complex.d.ts.map +1 -1
  28. package/types/phaser/display/webgl/shader/fast.d.ts +3 -7
  29. package/types/phaser/display/webgl/shader/fast.d.ts.map +1 -1
  30. package/types/phaser/display/webgl/shader/primitive.d.ts +3 -7
  31. package/types/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
  32. package/types/phaser/display/webgl/shader/strip.d.ts +3 -7
  33. package/types/phaser/display/webgl/shader/strip.d.ts.map +1 -1
  34. package/types/phaser/display/webgl/shader_manager.d.ts +3 -7
  35. package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
  36. package/types/phaser/display/webgl/stencil_manager.d.ts +3 -7
  37. package/types/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
  38. package/types/phaser/display/webgl/util.d.ts +14 -16
  39. package/types/phaser/display/webgl/util.d.ts.map +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @vpmedia/phaser
2
2
 
3
- [![npm version](https://badge.fury.io/js/@vpmedia%2Fphaser.svg?v=1.56.0)](https://badge.fury.io/js/@vpmedia%2Fphaser)
3
+ [![npm version](https://badge.fury.io/js/@vpmedia%2Fphaser.svg?v=1.58.0)](https://badge.fury.io/js/@vpmedia%2Fphaser)
4
4
  [![Node.js CI](https://github.com/vpmedia/phaser/actions/workflows/ci.yml/badge.svg)](https://github.com/vpmedia/phaser/actions/workflows/ci.yml)
5
5
 
6
6
  @vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/phaser",
3
- "version": "1.56.0",
3
+ "version": "1.58.0",
4
4
  "description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -150,31 +150,23 @@ export class Game {
150
150
  isWebGlReady = true;
151
151
  } catch (e) {
152
152
  isWebGlReady = false;
153
- const tags = {};
154
- /** @type {WebGLRenderer} */
155
- // @ts-ignore
156
- const renderer = this.renderer;
157
- if (renderer?.gl) {
158
- tags['webgl.error'] = renderer.gl.getError();
159
- tags['webgl.context_lost'] = renderer.gl.isContextLost();
160
- }
161
153
  if (window.PhaserRegistry?.GL_PROGRAM_INFO_LOG) {
162
- tags['webgl.program_log'] = window.PhaserRegistry.GL_PROGRAM_INFO_LOG;
154
+ this.logger.warn('WebGL program info', { log: window.PhaserRegistry.GL_PROGRAM_INFO_LOG });
163
155
  }
164
156
  if (window.PhaserRegistry?.GL_SHADER_INFO_LOG) {
165
- tags['webgl.shader_log'] = window.PhaserRegistry.GL_SHADER_INFO_LOG;
157
+ this.logger.warn('WebGL shader info', { log: window.PhaserRegistry.GL_SHADER_INFO_LOG });
166
158
  }
167
- this.exceptionHandler(e, tags);
159
+ this.exceptionHandler(e);
168
160
  }
169
161
  }
170
162
  if (!isWebGlReady) {
163
+ if (this.contextLostBinded) {
164
+ this.canvas.removeEventListener('webglcontextlost', this.contextLostBinded, false);
165
+ }
166
+ if (this.contextRestoredBinded) {
167
+ this.canvas.removeEventListener('webglcontextlost', this.contextRestoredBinded, false);
168
+ }
171
169
  if (this.renderer) {
172
- if (this.contextLostBinded) {
173
- this.canvas.removeEventListener('webglcontextlost', this.contextLostBinded, false);
174
- }
175
- if (this.contextRestoredBinded) {
176
- this.canvas.removeEventListener('webglcontextlost', this.contextRestoredBinded, false);
177
- }
178
170
  this.renderer.destroy();
179
171
  }
180
172
  this.createRendererCanvas();
@@ -9,7 +9,7 @@ export class WebGLBlendModeManager {
9
9
 
10
10
  /**
11
11
  * TBD.
12
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
12
+ * @param {WebGLRenderingContext} gl - TBD.
13
13
  */
14
14
  setContext(gl) {
15
15
  this.gl = gl;
@@ -10,7 +10,7 @@ export class WebGLFilterManager {
10
10
 
11
11
  /**
12
12
  * TBD.
13
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
13
+ * @param {WebGLRenderingContext} gl - TBD.
14
14
  */
15
15
  setContext(gl) {
16
16
  this.gl = gl;
@@ -3,7 +3,7 @@ import { SCALE_LINEAR } from '../../core/const.js';
3
3
  export class FilterTexture {
4
4
  /**
5
5
  * TBD.
6
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
6
+ * @param {WebGLRenderingContext} gl - TBD.
7
7
  * @param {number} width - TBD.
8
8
  * @param {number} height - TBD.
9
9
  * @param {number} scaleMode - TBD.
@@ -1,7 +1,7 @@
1
1
  export class GraphicsData {
2
2
  /**
3
3
  * TBD.
4
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
4
+ * @param {WebGLRenderingContext} gl - TBD.
5
5
  */
6
6
  constructor(gl) {
7
7
  this.gl = gl;
@@ -28,6 +28,7 @@ import * as WebGLMaskManager from './mask_manager.js';
28
28
  import { WebGLShaderManager } from './shader_manager.js';
29
29
  import { WebGLSpriteBatch } from './sprite_batch.js';
30
30
  import { WebGLStencilManager } from './stencil_manager.js';
31
+ import { getWebGLContextErrorCode } from './util.js';
31
32
 
32
33
  export class WebGLRenderer {
33
34
  /**
@@ -124,19 +125,20 @@ export class WebGLRenderer {
124
125
  */
125
126
  initContext(game) {
126
127
  game.logger.debug('initContext');
128
+ // TODO: view.addEventListener('webglcontextcreationerror', this.onWebGLContextCreationError, false);
127
129
  /** @type {WebGLRenderingContext & { id: number }} */
128
- const gl =
129
- this.view.getContext('webgl', this._contextOptions) ||
130
- this.view.getContext('experimental-webgl', this._contextOptions);
130
+ // @ts-ignore
131
+ const gl = this.view.getContext('webgl', this._contextOptions);
131
132
  this.gl = gl;
132
133
  if (!gl) {
133
134
  throw new Error('Error creating WebGL context');
134
135
  }
135
- if (gl?.isContextLost()) {
136
- game.logger.warn('WebGL context lost');
136
+ const errorCode = getWebGLContextErrorCode(gl);
137
+ if (errorCode) {
138
+ game.logger.warn('WebGL context error', { errorCode });
137
139
  }
138
- if (gl?.getError()) {
139
- game.logger.warn('WebGL context error', { errorCode: gl?.getError() });
140
+ if (gl?.isContextLost()) {
141
+ throw new Error('WebGL context lost');
140
142
  }
141
143
  // set current context
142
144
  this.initRegistry();
@@ -6,7 +6,7 @@ import { compileProgram } from '../util.js';
6
6
  export class ComplexPrimitiveShader {
7
7
  /**
8
8
  * TBD.
9
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
9
+ * @param {WebGLRenderingContext} gl - TBD.
10
10
  */
11
11
  constructor(gl) {
12
12
  this.gl = gl;
@@ -6,7 +6,7 @@ import { compileProgram } from '../util.js';
6
6
  export class FastShader {
7
7
  /**
8
8
  * TBD.
9
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
9
+ * @param {WebGLRenderingContext} gl - TBD.
10
10
  */
11
11
  constructor(gl) {
12
12
  this.gl = gl;
@@ -6,7 +6,7 @@ import { compileProgram } from '../util.js';
6
6
  export class PrimitiveShader {
7
7
  /**
8
8
  * TBD.
9
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
9
+ * @param {WebGLRenderingContext} gl - TBD.
10
10
  */
11
11
  constructor(gl) {
12
12
  this.gl = gl;
@@ -6,7 +6,7 @@ import { compileProgram } from '../util.js';
6
6
  export class StripShader {
7
7
  /**
8
8
  * TBD.
9
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
9
+ * @param {WebGLRenderingContext} gl - TBD.
10
10
  */
11
11
  constructor(gl) {
12
12
  this.gl = gl;
@@ -26,7 +26,7 @@ export class WebGLShaderManager {
26
26
 
27
27
  /**
28
28
  * TBD.
29
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
29
+ * @param {WebGLRenderingContext} gl - TBD.
30
30
  */
31
31
  setContext(gl) {
32
32
  this.gl = gl;
@@ -12,7 +12,7 @@ export class WebGLStencilManager {
12
12
 
13
13
  /**
14
14
  * TBD.
15
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
15
+ * @param {WebGLRenderingContext} gl - TBD.
16
16
  */
17
17
  setContext(gl) {
18
18
  this.gl = gl;
@@ -1,3 +1,13 @@
1
+ /**
2
+ * TBD.
3
+ * @param {WebGLRenderingContext} gl - TBD.
4
+ * @returns {number} TBD.
5
+ */
6
+ export function getWebGLContextErrorCode(gl) {
7
+ gl.NO_ERROR
8
+ return gl?.getError() ?? 0;
9
+ }
10
+
1
11
  /**
2
12
  * TBD.
3
13
  */
@@ -5,7 +15,7 @@ export function initDefaultShaders() {}
5
15
 
6
16
  /**
7
17
  * TBD.
8
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
18
+ * @param {WebGLRenderingContext} gl - TBD.
9
19
  * @param {string[]|string} shaderSrc - TBD.
10
20
  * @param {object} shaderType - TBD.
11
21
  * @returns {WebGLShader} TBD.
@@ -30,7 +40,7 @@ export function compileShader(gl, shaderSrc, shaderType) {
30
40
 
31
41
  /**
32
42
  * TBD.
33
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
43
+ * @param {WebGLRenderingContext} gl - TBD.
34
44
  * @param {string[]|string} shaderSrc - TBD.
35
45
  * @returns {WebGLShader} TBD.
36
46
  */
@@ -40,7 +50,7 @@ export function compileVertexShader(gl, shaderSrc) {
40
50
 
41
51
  /**
42
52
  * TBD.
43
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
53
+ * @param {WebGLRenderingContext} gl - TBD.
44
54
  * @param {string[]|string} shaderSrc - TBD.
45
55
  * @returns {WebGLShader} TBD.
46
56
  */
@@ -50,7 +60,7 @@ export function compileFragmentShader(gl, shaderSrc) {
50
60
 
51
61
  /**
52
62
  * TBD.
53
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
63
+ * @param {WebGLRenderingContext} gl - TBD.
54
64
  * @param {string[]|string} vertexSrc - TBD.
55
65
  * @param {string[]|string} fragmentSrc - TBD.
56
66
  * @returns {WebGLProgram} TBD.
@@ -1 +1 @@
1
- {"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/game.js"],"names":[],"mappings":"AAqBA;IACE;;;OAGG;IACH,yBAFW,MAAM,EAoDhB;IA9CC,WAAgB;IAChB,WAAW;IACX,eAAgB;IAChB,cAAgB;IAChB,eAAiB;IACjB,yCAAoB;IACpB,oBAAiB;IACjB,kBAAqB;IACrB,gBAAmB;IACnB,2BAAe;IACf,uBAAe;IACf,aAAiB;IACjB,aAAiB;IACjB,aAAgB;IAChB,oBAAiB;IACjB,oBAAiB;IACjB,aAAiB;IACjB,WAAgB;IAChB,qBAAkB;IAClB,aAAiB;IACjB,eAA0B;IAC1B,qBAAqB;IACrB,QADW,MAAM,CACC;IAClB,gCAAgC;IAChC,QADW,iBAAiB,CACV;IAClB,+BAA+B;IAC/B,SADW,gBAAgB,CACR;IACnB,gBAA2B;IAC3B,iBAA4B;IAC5B,eAA0B;IAC1B,kBAAqB;IAkBvB;;OAEG;IACH,aA+BC;IAED;;OAEG;IACH,6BAeC;IAED;;OAEG;IACH,qBAkDC;IA1CK,2BAkGK,iBAAiB,GAAG,KAAK,UAlGsB;IACpD,+BA6GK,iBAAiB,GAAG,KAAK,UA7G8B;IA2ClE;;;;;OAKG;IACH,2BAJW,MAAM,OACN,MAAM,gBACN,GAAC,QAQX;IAED;;;OAGG;IACH,oBAFW,MAAM,QAkChB;IAdG,sBAA+C;IAgBnD;;;OAGG;IACH,mBAFW,iBAAiB,GAAG,KAAK,QAQnC;IAED;;;OAGG;IACH,uBAFW,iBAAiB,GAAG,KAAK,QASnC;IAED;;;OAGG;IACH,aAFW,MAAM,QAoBhB;IAED;;OAEG;IACH,gBAwCC;CACF;+BA7U8B,+BAA+B;8BAEhC,8BAA8B;6BAU/B,oBAAoB;sCAFX,UAAU;kCAHd,cAAc;sBAJ1B,YAAY;sBAKZ,YAAY;uBACX,aAAa;6BAEP,oBAAoB;6BAGpB,oBAAoB;sBAC3B,YAAY;qBACb,WAAW;6BACH,oBAAoB;sBAC3B,YAAY;uBAbX,aAAa;uBANb,mBAAmB;uBAcnB,aAAa"}
1
+ {"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/game.js"],"names":[],"mappings":"AAqBA;IACE;;;OAGG;IACH,yBAFW,MAAM,EAoDhB;IA9CC,WAAgB;IAChB,WAAW;IACX,eAAgB;IAChB,cAAgB;IAChB,eAAiB;IACjB,yCAAoB;IACpB,oBAAiB;IACjB,kBAAqB;IACrB,gBAAmB;IACnB,2BAAe;IACf,uBAAe;IACf,aAAiB;IACjB,aAAiB;IACjB,aAAgB;IAChB,oBAAiB;IACjB,oBAAiB;IACjB,aAAiB;IACjB,WAAgB;IAChB,qBAAkB;IAClB,aAAiB;IACjB,eAA0B;IAC1B,qBAAqB;IACrB,QADW,MAAM,CACC;IAClB,gCAAgC;IAChC,QADW,iBAAiB,CACV;IAClB,+BAA+B;IAC/B,SADW,gBAAgB,CACR;IACnB,gBAA2B;IAC3B,iBAA4B;IAC5B,eAA0B;IAC1B,kBAAqB;IAkBvB;;OAEG;IACH,aA+BC;IAED;;OAEG;IACH,6BAeC;IAED;;OAEG;IACH,qBA0CC;IAlCK,2BA0FK,iBAAiB,GAAG,KAAK,UA1FsB;IACpD,+BAqGK,iBAAiB,GAAG,KAAK,UArG8B;IAmClE;;;;;OAKG;IACH,2BAJW,MAAM,OACN,MAAM,gBACN,GAAC,QAQX;IAED;;;OAGG;IACH,oBAFW,MAAM,QAkChB;IAdG,sBAA+C;IAgBnD;;;OAGG;IACH,mBAFW,iBAAiB,GAAG,KAAK,QAQnC;IAED;;;OAGG;IACH,uBAFW,iBAAiB,GAAG,KAAK,QASnC;IAED;;;OAGG;IACH,aAFW,MAAM,QAoBhB;IAED;;OAEG;IACH,gBAwCC;CACF;+BArU8B,+BAA+B;8BAEhC,8BAA8B;6BAU/B,oBAAoB;sCAFX,UAAU;kCAHd,cAAc;sBAJ1B,YAAY;sBAKZ,YAAY;uBACX,aAAa;6BAEP,oBAAoB;6BAGpB,oBAAoB;sBAC3B,YAAY;qBACb,WAAW;6BACH,oBAAoB;sBAC3B,YAAY;uBAbX,aAAa;uBANb,mBAAmB;uBAcnB,aAAa"}
@@ -1,15 +1,11 @@
1
1
  export class WebGLBlendModeManager {
2
- gl: WebGLRenderingContext & {
3
- id: number;
4
- };
2
+ gl: WebGLRenderingContext;
5
3
  currentBlendMode: number;
6
4
  /**
7
5
  * TBD.
8
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
6
+ * @param {WebGLRenderingContext} gl - TBD.
9
7
  */
10
- setContext(gl: WebGLRenderingContext & {
11
- id: number;
12
- }): void;
8
+ setContext(gl: WebGLRenderingContext): void;
13
9
  /**
14
10
  * TBD.
15
11
  * @param {number} blendMode - TBD.
@@ -1 +1 @@
1
- {"version":3,"file":"blend_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/blend_manager.js"],"names":[],"mappings":"AAAA;IAKI;YAMuC,MAAM;MAN/B;IACd,yBAA6B;IAG/B;;;OAGG;IACH,eAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QAIhD;IAED;;;;OAIG;IACH,wBAHW,MAAM,GACJ,OAAO,CAYnB;IAED;;OAEG;IACH,gBAEC;CACF"}
1
+ {"version":3,"file":"blend_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/blend_manager.js"],"names":[],"mappings":"AAAA;IAKI,0BAAc;IACd,yBAA6B;IAG/B;;;OAGG;IACH,eAFW,qBAAqB,QAI/B;IAED;;;;OAIG;IACH,wBAHW,MAAM,GACJ,OAAO,CAYnB;IAED;;OAEG;IACH,gBAEC;CACF"}
@@ -4,14 +4,10 @@ export class WebGLFilterManager {
4
4
  offsetY: number;
5
5
  /**
6
6
  * TBD.
7
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
7
+ * @param {WebGLRenderingContext} gl - TBD.
8
8
  */
9
- setContext(gl: WebGLRenderingContext & {
10
- id: number;
11
- }): void;
12
- gl: WebGLRenderingContext & {
13
- id: number;
14
- };
9
+ setContext(gl: WebGLRenderingContext): void;
10
+ gl: WebGLRenderingContext;
15
11
  texturePool: any[];
16
12
  /**
17
13
  * TBD.
@@ -1 +1 @@
1
- {"version":3,"file":"filter_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/filter_manager.js"],"names":[],"mappings":"AAAA;IAKI,mBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;IAGlB;;;OAGG;IACH,eAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QAMhD;IAHC;YAHuC,MAAM;MAGjC;IACZ,mBAAqB;IAIvB;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,wBAEC;IAED;;OAEG;IACH,0BAEC;IAED;;OAEG;IACH,gBAEC;CACF"}
1
+ {"version":3,"file":"filter_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/filter_manager.js"],"names":[],"mappings":"AAAA;IAKI,mBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;IAGlB;;;OAGG;IACH,eAFW,qBAAqB,QAM/B;IAHC,0BAAY;IACZ,mBAAqB;IAIvB;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,wBAEC;IAED;;OAEG;IACH,0BAEC;IAED;;OAEG;IACH,gBAEC;CACF"}
@@ -1,17 +1,13 @@
1
1
  export class FilterTexture {
2
2
  /**
3
3
  * TBD.
4
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
4
+ * @param {WebGLRenderingContext} gl - TBD.
5
5
  * @param {number} width - TBD.
6
6
  * @param {number} height - TBD.
7
7
  * @param {number} scaleMode - TBD.
8
8
  */
9
- constructor(gl: WebGLRenderingContext & {
10
- id: number;
11
- }, width: number, height: number, scaleMode: number);
12
- gl: WebGLRenderingContext & {
13
- id: number;
14
- };
9
+ constructor(gl: WebGLRenderingContext, width: number, height: number, scaleMode: number);
10
+ gl: WebGLRenderingContext;
15
11
  frameBuffer: WebGLFramebuffer;
16
12
  texture: WebGLTexture;
17
13
  renderBuffer: WebGLRenderbuffer;
@@ -1 +1 @@
1
- {"version":3,"file":"filter_texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/filter_texture.js"],"names":[],"mappings":"AAEA;IACE;;;;;;OAMG;IACH,gBALW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,SACtC,MAAM,UACN,MAAM,aACN,MAAM,EAoBhB;IAjBC;YANuC,MAAM;MAMjC;IACZ,8BAAyC;IACzC,sBAAiC;IAWjC,gCAA2C;IAM7C;;OAEG;IACH,cAIC;IAED;;;;OAIG;IACH,cAHW,MAAM,UACN,MAAM,QAchB;IARC,WAAkB;IAClB,eAAoB;IAStB;;OAEG;IACH,gBAQC;CACF"}
1
+ {"version":3,"file":"filter_texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/filter_texture.js"],"names":[],"mappings":"AAEA;IACE;;;;;;OAMG;IACH,gBALW,qBAAqB,SACrB,MAAM,UACN,MAAM,aACN,MAAM,EAoBhB;IAjBC,0BAAY;IACZ,8BAAyC;IACzC,sBAAiC;IAWjC,gCAA2C;IAM7C;;OAEG;IACH,cAIC;IAED;;;;OAIG;IACH,cAHW,MAAM,UACN,MAAM,QAchB;IARC,WAAkB;IAClB,eAAoB;IAStB;;OAEG;IACH,gBAQC;CACF"}
@@ -1,14 +1,10 @@
1
1
  export class GraphicsData {
2
2
  /**
3
3
  * TBD.
4
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
4
+ * @param {WebGLRenderingContext} gl - TBD.
5
5
  */
6
- constructor(gl: WebGLRenderingContext & {
7
- id: number;
8
- });
9
- gl: WebGLRenderingContext & {
10
- id: number;
11
- };
6
+ constructor(gl: WebGLRenderingContext);
7
+ gl: WebGLRenderingContext;
12
8
  color: number[];
13
9
  points: any[];
14
10
  indices: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"graphics_data.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/graphics_data.js"],"names":[],"mappings":"AAAA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAahD;IAVC;YAHuC,MAAM;MAGjC;IAEZ,gBAAsB;IACtB,cAAgB;IAChB,eAAiB;IACjB,oBAA+B;IAC/B,yBAAoC;IACpC,aAAa;IACb,cAAc;IACd,eAAiB;IAGnB;;OAEG;IACH,cAKC;IAFC,uBAAoB;IACpB,wBAAsB;IAGxB;;OAEG;IACH,eAUC;CACF"}
1
+ {"version":3,"file":"graphics_data.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/graphics_data.js"],"names":[],"mappings":"AAAA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,EAa/B;IAVC,0BAAY;IAEZ,gBAAsB;IACtB,cAAgB;IAChB,eAAiB;IACjB,oBAA+B;IAC/B,yBAAoC;IACpC,aAAa;IACb,cAAc;IACd,eAAiB;IAGnB;;OAEG;IACH,cAKC;IAFC,uBAAoB;IACpB,wBAAsB;IAGxB;;OAEG;IACH,eAUC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/renderer.js"],"names":[],"mappings":"AA+BA;IACE;;;OAGG;IACH,kBAFW,OAAO,oBAAoB,EAAE,IAAI,EAwC3C;IArCC,aAAwB;IACxB,gBAAwC;IACxC,oBAAuB;IACvB,qBAAwB;IACxB,uBAAsD;IACtD,cAAuB;IACvB,eAAyB;IACzB,wBAAuB;IACvB;;;;;;;;MAQC;IACD,kBAA6B;IAC7B,cAAyB;IACzB,kCAA6C;IAC7C,8BAAyC;IACzC,kCAA6C;IAC7C,oCAA+C;IAC/C,wCAAmD;IACnD,kBAAuB;IAezB;;OAEG;IACH,gBAuBC;IALC;YA6ByC,MAAM;MA7BjC;IAOhB;;OAEG;IACH,qBAUC;IAED;;;;OAIG;IACH,kBAHW,OAAO,oBAAoB,EAAE,IAAI,QAuC3C;IAlBC,iBAAsD;IAoBxD;;;OAGG;IACH,cAFW,OAAO,qBAAqB,EAAE,KAAK,QAkB7C;IAED;;;;;;OAMG;IACH,mCALW,OAAO,iCAAiC,EAAE,aAAa,cACvD,KAAK,UACL,MAAM,UACN,OAAO,sBAAsB,EAAE,MAAM,QAoB/C;IAED;;;;OAIG;IACH,cAHW,MAAM,UACN,MAAM,QAchB;IAED;;;;OAIG;IACH,uBAHW,OAAO,mBAAmB,EAAE,WAAW,GACrC,OAAO,CAsCnB;IAED;;OAEG;IACH,sBAwBC;CACF;sBAxRqB,qBAAqB;mCAMR,qBAAqB;iCACvB,mBAAmB;mCAHjB,qBAAqB;oCAIpB,sBAAsB;sCALpB,oBAAoB"}
1
+ {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/renderer.js"],"names":[],"mappings":"AAgCA;IACE;;;OAGG;IACH,kBAFW,OAAO,oBAAoB,EAAE,IAAI,EAwC3C;IArCC,aAAwB;IACxB,gBAAwC;IACxC,oBAAuB;IACvB,qBAAwB;IACxB,uBAAsD;IACtD,cAAuB;IACvB,eAAyB;IACzB,wBAAuB;IACvB;;;;;;;;MAQC;IACD,kBAA6B;IAC7B,cAAyB;IACzB,kCAA6C;IAC7C,8BAAyC;IACzC,kCAA6C;IAC7C,oCAA+C;IAC/C,wCAAmD;IACnD,kBAAuB;IAezB;;OAEG;IACH,gBAuBC;IALC;YA8ByC,MAAM;MA9BjC;IAOhB;;OAEG;IACH,qBAUC;IAED;;;;OAIG;IACH,kBAHW,OAAO,oBAAoB,EAAE,IAAI,QAwC3C;IAlBC,iBAAsD;IAoBxD;;;OAGG;IACH,cAFW,OAAO,qBAAqB,EAAE,KAAK,QAkB7C;IAED;;;;;;OAMG;IACH,mCALW,OAAO,iCAAiC,EAAE,aAAa,cACvD,KAAK,UACL,MAAM,UACN,OAAO,sBAAsB,EAAE,MAAM,QAoB/C;IAED;;;;OAIG;IACH,cAHW,MAAM,UACN,MAAM,QAchB;IAED;;;;OAIG;IACH,uBAHW,OAAO,mBAAmB,EAAE,WAAW,GACrC,OAAO,CAsCnB;IAED;;OAEG;IACH,sBAwBC;CACF;sBA1RqB,qBAAqB;mCAMR,qBAAqB;iCACvB,mBAAmB;mCAHjB,qBAAqB;oCAIpB,sBAAsB;sCALpB,oBAAoB"}
@@ -1,14 +1,10 @@
1
1
  export class ComplexPrimitiveShader {
2
2
  /**
3
3
  * TBD.
4
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
4
+ * @param {WebGLRenderingContext} gl - TBD.
5
5
  */
6
- constructor(gl: WebGLRenderingContext & {
7
- id: number;
8
- });
9
- gl: WebGLRenderingContext & {
10
- id: number;
11
- };
6
+ constructor(gl: WebGLRenderingContext);
7
+ gl: WebGLRenderingContext;
12
8
  _UID: string;
13
9
  program: WebGLProgram;
14
10
  fragmentSrc: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/complex.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAkChD;IA/BC;YAHuC,MAAM;MAGjC;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,sBAMC;IACD,oBAmBC;IAIH;;OAEG;IACH,aAiBC;IAZC,uCAA0E;IAC1E,mCAAkE;IAClE,gCAAuD;IACvD,4BAAoD;IACpD,4BAAoD;IAEpD,wBAAuE;IAEvE,kBAA6D;IAC7D,wCAA4E;IAC5E,4BAAoD;IAItD;;OAEG;IACH,gBAKC;IAHC,cAAoB;IAEpB,eAAqB;CAExB"}
1
+ {"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/complex.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,EAkC/B;IA/BC,0BAAY;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,sBAMC;IACD,oBAmBC;IAIH;;OAEG;IACH,aAiBC;IAZC,uCAA0E;IAC1E,mCAAkE;IAClE,gCAAuD;IACvD,4BAAoD;IACpD,4BAAoD;IAEpD,wBAAuE;IAEvE,kBAA6D;IAC7D,wCAA4E;IAC5E,4BAAoD;IAItD;;OAEG;IACH,gBAKC;IAHC,cAAoB;IAEpB,eAAqB;CAExB"}
@@ -1,14 +1,10 @@
1
1
  export class FastShader {
2
2
  /**
3
3
  * TBD.
4
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
4
+ * @param {WebGLRenderingContext} gl - TBD.
5
5
  */
6
- constructor(gl: WebGLRenderingContext & {
7
- id: number;
8
- });
9
- gl: WebGLRenderingContext & {
10
- id: number;
11
- };
6
+ constructor(gl: WebGLRenderingContext);
7
+ gl: WebGLRenderingContext;
12
8
  _UID: string;
13
9
  program: WebGLProgram;
14
10
  textureCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"fast.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/fast.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EA8ChD;IA3CC;YAHuC,MAAM;MAGjC;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,qBAAqB;IACrB,sBAQC;IACD,oBA4BC;IAIH;;OAEG;IACH,aAmCC;IA9BC,+BAA0D;IAC1D,uCAA0E;IAC1E,mCAAkE;IAClE,iCAA8D;IAC9D,8BAAwD;IAExD,wBAAuE;IACvE,uBAAqE;IACrE,eAAqD;IACrD,kBAA2D;IAC3D,sBAAmE;IACnE,uBAA6D;IAS7D,qBAOC;IAKH;;OAEG;IACH,gBAKC;IAHC,cAAoB;CAIvB"}
1
+ {"version":3,"file":"fast.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/fast.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,EA8C/B;IA3CC,0BAAY;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,qBAAqB;IACrB,sBAQC;IACD,oBA4BC;IAIH;;OAEG;IACH,aAmCC;IA9BC,+BAA0D;IAC1D,uCAA0E;IAC1E,mCAAkE;IAClE,iCAA8D;IAC9D,8BAAwD;IAExD,wBAAuE;IACvE,uBAAqE;IACrE,eAAqD;IACrD,kBAA2D;IAC3D,sBAAmE;IACnE,uBAA6D;IAS7D,qBAOC;IAKH;;OAEG;IACH,gBAKC;IAHC,cAAoB;CAIvB"}
@@ -1,14 +1,10 @@
1
1
  export class PrimitiveShader {
2
2
  /**
3
3
  * TBD.
4
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
4
+ * @param {WebGLRenderingContext} gl - TBD.
5
5
  */
6
- constructor(gl: WebGLRenderingContext & {
7
- id: number;
8
- });
9
- gl: WebGLRenderingContext & {
10
- id: number;
11
- };
6
+ constructor(gl: WebGLRenderingContext);
7
+ gl: WebGLRenderingContext;
12
8
  _UID: string;
13
9
  program: WebGLProgram;
14
10
  fragmentSrc: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/primitive.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAiChD;IA9BC;YAHuC,MAAM;MAGjC;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,sBAOC;IACD,oBAiBC;IAIH;;OAEG;IACH,aAgBC;IAXC,uCAA0E;IAC1E,mCAAkE;IAClE,gCAAuD;IACvD,4BAAoD;IAEpD,wBAAuE;IACvE,uBAA6D;IAC7D,qBAA6D;IAC7D,wCAA4E;IAC5E,4BAAoD;IAItD;;OAEG;IACH,gBAKC;IAHC,cAAoB;CAIvB"}
1
+ {"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/primitive.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,EAiC/B;IA9BC,0BAAY;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,sBAOC;IACD,oBAiBC;IAIH;;OAEG;IACH,aAgBC;IAXC,uCAA0E;IAC1E,mCAAkE;IAClE,gCAAuD;IACvD,4BAAoD;IAEpD,wBAAuE;IACvE,uBAA6D;IAC7D,qBAA6D;IAC7D,wCAA4E;IAC5E,4BAAoD;IAItD;;OAEG;IACH,gBAKC;IAHC,cAAoB;CAIvB"}
@@ -1,14 +1,10 @@
1
1
  export class StripShader {
2
2
  /**
3
3
  * TBD.
4
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
4
+ * @param {WebGLRenderingContext} gl - TBD.
5
5
  */
6
- constructor(gl: WebGLRenderingContext & {
7
- id: number;
8
- });
9
- gl: WebGLRenderingContext & {
10
- id: number;
11
- };
6
+ constructor(gl: WebGLRenderingContext);
7
+ gl: WebGLRenderingContext;
12
8
  _UID: string;
13
9
  program: WebGLProgram;
14
10
  fragmentSrc: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"strip.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/strip.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAqChD;IAlCC;YAHuC,MAAM;MAGjC;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,sBAUC;IACD,oBAiBC;IAKH;;OAEG;IACH,aAiBC;IAZC,+BAA0D;IAC1D,uCAA0E;IAC1E,mCAAkE;IAClE,uBAA6D;IAG7D,wBAAuE;IACvE,sBAAmE;IACnE,qBAA4D;IAC5D,wCAA4E;IAC5E,4BAAoD;IAItD;;OAEG;IACH,gBAKC;IAHC,cAAoB;IAEpB,eAAqB;CAExB"}
1
+ {"version":3,"file":"strip.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/strip.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,EAqC/B;IAlCC,0BAAY;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,sBAUC;IACD,oBAiBC;IAKH;;OAEG;IACH,aAiBC;IAZC,+BAA0D;IAC1D,uCAA0E;IAC1E,mCAAkE;IAClE,uBAA6D;IAG7D,wBAAuE;IACvE,sBAAmE;IACnE,qBAA4D;IAC5D,wCAA4E;IAC5E,4BAAoD;IAItD;;OAEG;IACH,gBAKC;IAHC,cAAoB;IAEpB,eAAqB;CAExB"}
@@ -1,7 +1,5 @@
1
1
  export class WebGLShaderManager {
2
- gl: WebGLRenderingContext & {
3
- id: number;
4
- };
2
+ gl: WebGLRenderingContext;
5
3
  primitiveShader: PrimitiveShader;
6
4
  complexPrimitiveShader: ComplexPrimitiveShader;
7
5
  defaultShader: NormalShader;
@@ -13,11 +11,9 @@ export class WebGLShaderManager {
13
11
  stack: any[];
14
12
  /**
15
13
  * TBD.
16
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
14
+ * @param {WebGLRenderingContext} gl - TBD.
17
15
  */
18
- setContext(gl: WebGLRenderingContext & {
19
- id: number;
20
- }): void;
16
+ setContext(gl: WebGLRenderingContext): void;
21
17
  /**
22
18
  * TBD.
23
19
  * @param {number[]} attribs - TBD.
@@ -1 +1 @@
1
- {"version":3,"file":"shader_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/shader_manager.js"],"names":[],"mappings":"AAMA;IAKI;YAiBuC,MAAM;MAjB/B;IACd,iCAA2B;IAC3B,+CAAkC;IAClC,4BAAyB;IACzB,uBAAsB;IACtB,yBAAuB;IACvB,kBAAmB;IACnB,uBAAqB;IACrB,uBAAyB;IAIzB,aAAe;IAGjB;;;OAGG;IACH,eAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QAUhD;IAED;;;OAGG;IACH,oBAFW,MAAM,EAAE,QAwBlB;IAED;;;;OAIG;IACH,kBAHW,YAAY,GACV,OAAO,CAWnB;IALC,gBAA6B;IAC7B,4BAA2B;IAM7B;;OAEG;IACH,gBAWC;CACF;gCAhG+B,uBAAuB;uCAHhB,qBAAqB;6BAE/B,oBAAoB;2BADtB,kBAAkB;4BAGjB,mBAAmB"}
1
+ {"version":3,"file":"shader_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/shader_manager.js"],"names":[],"mappings":"AAMA;IAKI,0BAAc;IACd,iCAA2B;IAC3B,+CAAkC;IAClC,4BAAyB;IACzB,uBAAsB;IACtB,yBAAuB;IACvB,kBAAmB;IACnB,uBAAqB;IACrB,uBAAyB;IAIzB,aAAe;IAGjB;;;OAGG;IACH,eAFW,qBAAqB,QAU/B;IAED;;;OAGG;IACH,oBAFW,MAAM,EAAE,QAwBlB;IAED;;;;OAIG;IACH,kBAHW,YAAY,GACV,OAAO,CAWnB;IALC,gBAA6B;IAC7B,4BAA2B;IAM7B;;OAEG;IACH,gBAWC;CACF;gCAhG+B,uBAAuB;uCAHhB,qBAAqB;6BAE/B,oBAAoB;2BADtB,kBAAkB;4BAGjB,mBAAmB"}
@@ -4,14 +4,10 @@ export class WebGLStencilManager {
4
4
  count: number;
5
5
  /**
6
6
  * TBD.
7
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
7
+ * @param {WebGLRenderingContext} gl - TBD.
8
8
  */
9
- setContext(gl: WebGLRenderingContext & {
10
- id: number;
11
- }): void;
12
- gl: WebGLRenderingContext & {
13
- id: number;
14
- };
9
+ setContext(gl: WebGLRenderingContext): void;
10
+ gl: WebGLRenderingContext;
15
11
  /**
16
12
  * TBD.
17
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"stencil_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/stencil_manager.js"],"names":[],"mappings":"AAEA;IAKI,oBAAsB;IACtB,iBAAmB;IACnB,cAAc;IAGhB;;;OAGG;IACH,eAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QAIhD;IADC;YAHuC,MAAM;MAGjC;IAGd;;OAEG;IACH,gBAGC;IAED;;;;;OAKG;IACH,sBAJW,OAAO,gBAAgB,EAAE,QAAQ,aACjC,OAAO,oBAAoB,EAAE,YAAY,iBACzC,MAAM,QAoDhB;IAED;;;;;OAKG;IACH,uBAJW,OAAO,gBAAgB,EAAE,QAAQ,aACjC,OAAO,oBAAoB,EAAE,YAAY,iBACzC,MAAM,QAyChB;IAED;;;;;OAKG;IACH,qBAJW,OAAO,gBAAgB,EAAE,QAAQ,aACjC,OAAO,oBAAoB,EAAE,YAAY,iBACzC,MAAM,QAmDhB;CACF"}
1
+ {"version":3,"file":"stencil_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/stencil_manager.js"],"names":[],"mappings":"AAEA;IAKI,oBAAsB;IACtB,iBAAmB;IACnB,cAAc;IAGhB;;;OAGG;IACH,eAFW,qBAAqB,QAI/B;IADC,0BAAY;IAGd;;OAEG;IACH,gBAGC;IAED;;;;;OAKG;IACH,sBAJW,OAAO,gBAAgB,EAAE,QAAQ,aACjC,OAAO,oBAAoB,EAAE,YAAY,iBACzC,MAAM,QAoDhB;IAED;;;;;OAKG;IACH,uBAJW,OAAO,gBAAgB,EAAE,QAAQ,aACjC,OAAO,oBAAoB,EAAE,YAAY,iBACzC,MAAM,QAyChB;IAED;;;;;OAKG;IACH,qBAJW,OAAO,gBAAgB,EAAE,QAAQ,aACjC,OAAO,oBAAoB,EAAE,YAAY,iBACzC,MAAM,QAmDhB;CACF"}
@@ -1,43 +1,41 @@
1
+ /**
2
+ * TBD.
3
+ * @param {WebGLRenderingContext} gl - TBD.
4
+ * @returns {number} TBD.
5
+ */
6
+ export function getWebGLContextErrorCode(gl: WebGLRenderingContext): number;
1
7
  /**
2
8
  * TBD.
3
9
  */
4
10
  export function initDefaultShaders(): void;
5
11
  /**
6
12
  * TBD.
7
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
13
+ * @param {WebGLRenderingContext} gl - TBD.
8
14
  * @param {string[]|string} shaderSrc - TBD.
9
15
  * @param {object} shaderType - TBD.
10
16
  * @returns {WebGLShader} TBD.
11
17
  */
12
- export function compileShader(gl: WebGLRenderingContext & {
13
- id: number;
14
- }, shaderSrc: string[] | string, shaderType: object): WebGLShader;
18
+ export function compileShader(gl: WebGLRenderingContext, shaderSrc: string[] | string, shaderType: object): WebGLShader;
15
19
  /**
16
20
  * TBD.
17
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
21
+ * @param {WebGLRenderingContext} gl - TBD.
18
22
  * @param {string[]|string} shaderSrc - TBD.
19
23
  * @returns {WebGLShader} TBD.
20
24
  */
21
- export function compileVertexShader(gl: WebGLRenderingContext & {
22
- id: number;
23
- }, shaderSrc: string[] | string): WebGLShader;
25
+ export function compileVertexShader(gl: WebGLRenderingContext, shaderSrc: string[] | string): WebGLShader;
24
26
  /**
25
27
  * TBD.
26
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
28
+ * @param {WebGLRenderingContext} gl - TBD.
27
29
  * @param {string[]|string} shaderSrc - TBD.
28
30
  * @returns {WebGLShader} TBD.
29
31
  */
30
- export function compileFragmentShader(gl: WebGLRenderingContext & {
31
- id: number;
32
- }, shaderSrc: string[] | string): WebGLShader;
32
+ export function compileFragmentShader(gl: WebGLRenderingContext, shaderSrc: string[] | string): WebGLShader;
33
33
  /**
34
34
  * TBD.
35
- * @param {WebGLRenderingContext & { id: number }} gl - TBD.
35
+ * @param {WebGLRenderingContext} gl - TBD.
36
36
  * @param {string[]|string} vertexSrc - TBD.
37
37
  * @param {string[]|string} fragmentSrc - TBD.
38
38
  * @returns {WebGLProgram} TBD.
39
39
  */
40
- export function compileProgram(gl: WebGLRenderingContext & {
41
- id: number;
42
- }, vertexSrc: string[] | string, fragmentSrc: string[] | string): WebGLProgram;
40
+ export function compileProgram(gl: WebGLRenderingContext, vertexSrc: string[] | string, fragmentSrc: string[] | string): WebGLProgram;
43
41
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/util.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,2CAAuC;AAEvC;;;;;;GAMG;AACH,kCALW,qBAAqB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,aACtC,MAAM,EAAE,GAAC,MAAM,cACf,MAAM,GACJ,WAAW,CAkBvB;AAED;;;;;GAKG;AACH,wCAJW,qBAAqB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,aACtC,MAAM,EAAE,GAAC,MAAM,GACb,WAAW,CAIvB;AAED;;;;;GAKG;AACH,0CAJW,qBAAqB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,aACtC,MAAM,EAAE,GAAC,MAAM,GACb,WAAW,CAIvB;AAED;;;;;;GAMG;AACH,mCALW,qBAAqB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,aACtC,MAAM,EAAE,GAAC,MAAM,eACf,MAAM,EAAE,GAAC,MAAM,GACb,YAAY,CAmBxB"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/util.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,6CAHW,qBAAqB,GACnB,MAAM,CAIlB;AAED;;GAEG;AACH,2CAAuC;AAEvC;;;;;;GAMG;AACH,kCALW,qBAAqB,aACrB,MAAM,EAAE,GAAC,MAAM,cACf,MAAM,GACJ,WAAW,CAkBvB;AAED;;;;;GAKG;AACH,wCAJW,qBAAqB,aACrB,MAAM,EAAE,GAAC,MAAM,GACb,WAAW,CAIvB;AAED;;;;;GAKG;AACH,0CAJW,qBAAqB,aACrB,MAAM,EAAE,GAAC,MAAM,GACb,WAAW,CAIvB;AAED;;;;;;GAMG;AACH,mCALW,qBAAqB,aACrB,MAAM,EAAE,GAAC,MAAM,eACf,MAAM,EAAE,GAAC,MAAM,GACb,YAAY,CAmBxB"}