@vpmedia/phaser 1.57.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/phaser/display/webgl/blend_manager.js +1 -1
- package/src/phaser/display/webgl/filter_manager.js +1 -1
- package/src/phaser/display/webgl/filter_texture.js +1 -1
- package/src/phaser/display/webgl/graphics_data.js +1 -1
- package/src/phaser/display/webgl/renderer.js +7 -5
- package/src/phaser/display/webgl/shader/complex.js +1 -1
- package/src/phaser/display/webgl/shader/fast.js +1 -1
- package/src/phaser/display/webgl/shader/primitive.js +1 -1
- package/src/phaser/display/webgl/shader/strip.js +1 -1
- package/src/phaser/display/webgl/shader_manager.js +1 -1
- package/src/phaser/display/webgl/stencil_manager.js +1 -1
- package/src/phaser/display/webgl/util.js +14 -4
- package/types/phaser/display/webgl/blend_manager.d.ts +3 -7
- package/types/phaser/display/webgl/blend_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_manager.d.ts +3 -7
- package/types/phaser/display/webgl/filter_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_texture.d.ts +3 -7
- package/types/phaser/display/webgl/filter_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +3 -7
- package/types/phaser/display/webgl/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +3 -7
- package/types/phaser/display/webgl/shader/complex.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/fast.d.ts +3 -7
- package/types/phaser/display/webgl/shader/fast.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/primitive.d.ts +3 -7
- package/types/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/strip.d.ts +3 -7
- package/types/phaser/display/webgl/shader/strip.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +3 -7
- package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/stencil_manager.d.ts +3 -7
- package/types/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/util.d.ts +14 -16
- 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
|
-
[](https://badge.fury.io/js/@vpmedia%2Fphaser)
|
|
4
4
|
[](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.
|
|
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",
|
|
@@ -3,7 +3,7 @@ import { SCALE_LINEAR } from '../../core/const.js';
|
|
|
3
3
|
export class FilterTexture {
|
|
4
4
|
/**
|
|
5
5
|
* TBD.
|
|
6
|
-
* @param {WebGLRenderingContext
|
|
6
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
7
7
|
* @param {number} width - TBD.
|
|
8
8
|
* @param {number} height - TBD.
|
|
9
9
|
* @param {number} scaleMode - TBD.
|
|
@@ -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,16 +125,17 @@ 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
|
-
|
|
129
|
-
|
|
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
|
-
|
|
136
|
-
|
|
136
|
+
const errorCode = getWebGLContextErrorCode(gl);
|
|
137
|
+
if (errorCode) {
|
|
138
|
+
game.logger.warn('WebGL context error', { errorCode });
|
|
137
139
|
}
|
|
138
140
|
if (gl?.isContextLost()) {
|
|
139
141
|
throw new Error('WebGL context lost');
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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,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
|
|
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
|
|
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
|
|
7
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
8
8
|
*/
|
|
9
|
-
setContext(gl: WebGLRenderingContext
|
|
10
|
-
|
|
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,
|
|
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
|
|
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
|
-
|
|
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,
|
|
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
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
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,
|
|
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":"
|
|
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
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
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,
|
|
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
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
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,
|
|
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
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
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,
|
|
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
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
7
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
8
8
|
*/
|
|
9
|
-
setContext(gl: WebGLRenderingContext
|
|
10
|
-
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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"}
|