@vpmedia/phaser 1.50.0 → 1.52.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 +5 -2
- package/src/phaser/core/animation_manager.js +1 -1
- package/src/phaser/core/animation_parser.js +2 -2
- package/src/phaser/core/cache.js +2 -2
- package/src/phaser/core/game.js +18 -5
- package/src/phaser/core/input.js +1 -1
- package/src/phaser/core/loader.js +10 -10
- package/src/phaser/core/sound.js +1 -1
- package/src/phaser/core/tween.js +1 -1
- package/src/phaser/display/canvas/renderer.js +8 -1
- package/src/phaser/display/canvas/tinter.js +25 -16
- package/src/phaser/display/display_object.js +2 -1
- package/src/phaser/display/graphics.js +1 -1
- package/src/phaser/display/text.js +1 -1
- package/src/phaser/display/webgl/blend_manager.js +1 -1
- package/src/phaser/display/webgl/fast_sprite_batch.js +2 -2
- 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/shader/complex.js +1 -1
- package/src/phaser/display/webgl/shader/fast.js +1 -1
- package/src/phaser/display/webgl/shader/normal.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 +3 -3
- package/src/phaser/display/webgl/sprite_batch.js +1 -1
- package/src/phaser/display/webgl/stencil_manager.js +1 -1
- package/types/phaser/core/game.d.ts +9 -5
- package/types/phaser/core/game.d.ts.map +1 -1
- package/types/phaser/display/canvas/renderer.d.ts +4 -0
- package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/types/phaser/display/canvas/tinter.d.ts +8 -3
- package/types/phaser/display/canvas/tinter.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +1 -0
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/webgl/blend_manager.d.ts +7 -3
- package/types/phaser/display/webgl/blend_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts +11 -5
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_manager.d.ts +7 -3
- package/types/phaser/display/webgl/filter_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_texture.d.ts +7 -3
- package/types/phaser/display/webgl/filter_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +7 -3
- package/types/phaser/display/webgl/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +7 -3
- package/types/phaser/display/webgl/shader/complex.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/fast.d.ts +7 -3
- package/types/phaser/display/webgl/shader/fast.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/normal.d.ts +7 -3
- package/types/phaser/display/webgl/shader/normal.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/primitive.d.ts +7 -3
- package/types/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/strip.d.ts +7 -3
- package/types/phaser/display/webgl/shader/strip.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +7 -3
- package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts +7 -3
- package/types/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/stencil_manager.d.ts +7 -3
- package/types/phaser/display/webgl/stencil_manager.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.52.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",
|
|
@@ -48,5 +48,8 @@
|
|
|
48
48
|
"> 0.5%",
|
|
49
49
|
"not dead",
|
|
50
50
|
"not op_mini all"
|
|
51
|
-
]
|
|
51
|
+
],
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@vpmedia/simplify": "^1.12.0"
|
|
54
|
+
}
|
|
52
55
|
}
|
|
@@ -239,7 +239,7 @@ export class AnimationManager {
|
|
|
239
239
|
*/
|
|
240
240
|
refreshFrame() {
|
|
241
241
|
// TODO
|
|
242
|
-
|
|
242
|
+
this.game.logger.warn('animation_manager.refreshFrame() is not implemented');
|
|
243
243
|
// this.sprite.setTexture(PIXI.TextureCache[this.currentFrame.uuid]);
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -36,7 +36,7 @@ export function spriteSheet(game, key, frameWidth, frameHeight, frameMax, margin
|
|
|
36
36
|
}
|
|
37
37
|
// Zero or smaller than frame sizes?
|
|
38
38
|
if (width === 0 || height === 0 || width < frameWidth || height < frameHeight || total === 0) {
|
|
39
|
-
|
|
39
|
+
game.logger.warn(
|
|
40
40
|
`AnimationParser.spriteSheet: '${key}'s width/height zero or width/height < given frameWidth/frameHeight`
|
|
41
41
|
);
|
|
42
42
|
return null;
|
|
@@ -64,7 +64,7 @@ export function spriteSheet(game, key, frameWidth, frameHeight, frameMax, margin
|
|
|
64
64
|
*/
|
|
65
65
|
export function JSONDataHash(game, json) {
|
|
66
66
|
if (!json.frames) {
|
|
67
|
-
|
|
67
|
+
game.logger.warn('JSONDataHash: Invalid Texture Atlas JSON given, missing frames object', json);
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
70
|
// Let's create some frames then
|
package/src/phaser/core/cache.js
CHANGED
|
@@ -91,7 +91,7 @@ export class Cache {
|
|
|
91
91
|
this.removeImage(key);
|
|
92
92
|
}
|
|
93
93
|
/* if (!data.complete) {
|
|
94
|
-
|
|
94
|
+
this.game.logger.warn('Cache addImage %s is incomplete', key);
|
|
95
95
|
} */
|
|
96
96
|
const img = {
|
|
97
97
|
key,
|
|
@@ -626,7 +626,7 @@ export class Cache {
|
|
|
626
626
|
if (resolvedURL) {
|
|
627
627
|
return this._urlMap[resolvedURL];
|
|
628
628
|
}
|
|
629
|
-
|
|
629
|
+
this.game.logger.warn('Cache invalid url', { resolvedURL });
|
|
630
630
|
return null;
|
|
631
631
|
}
|
|
632
632
|
|
package/src/phaser/core/game.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Logger } from '@vpmedia/simplify';
|
|
1
2
|
import { CanvasRenderer } from '../display/canvas/renderer.js';
|
|
2
3
|
import { addToDOM, create, removeFromDOM, setTouchAction } from '../display/canvas/util.js';
|
|
3
4
|
import { WebGLRenderer } from '../display/webgl/renderer.js';
|
|
@@ -48,6 +49,8 @@ export class Game {
|
|
|
48
49
|
this.tweens = null;
|
|
49
50
|
this.world = null;
|
|
50
51
|
this.device = new Device();
|
|
52
|
+
/** @type {Logger} */
|
|
53
|
+
this.logger = null;
|
|
51
54
|
/** @type {HTMLCanvasElement} */
|
|
52
55
|
this.canvas = null;
|
|
53
56
|
/** @type {RenderingContext} */
|
|
@@ -113,6 +116,7 @@ export class Game {
|
|
|
113
116
|
* TBD.
|
|
114
117
|
*/
|
|
115
118
|
createRendererCanvas() {
|
|
119
|
+
this.logger.info('createRendererCanvas');
|
|
116
120
|
if (this.canvas) {
|
|
117
121
|
removeFromDOM(this.canvas);
|
|
118
122
|
}
|
|
@@ -132,10 +136,12 @@ export class Game {
|
|
|
132
136
|
* TBD.
|
|
133
137
|
*/
|
|
134
138
|
initRenderer() {
|
|
139
|
+
this.logger.info('initRenderer');
|
|
135
140
|
this.createRendererCanvas();
|
|
136
141
|
let isWebGlReady = false;
|
|
137
142
|
if (this.config.renderType === RENDER_AUTO || this.config.renderType === RENDER_WEBGL) {
|
|
138
143
|
try {
|
|
144
|
+
this.logger.info('initWebGLRenderer');
|
|
139
145
|
this.renderer = new WebGLRenderer(this);
|
|
140
146
|
this.context = null;
|
|
141
147
|
this.contextLostBinded = this.contextLost.bind(this);
|
|
@@ -180,6 +186,7 @@ export class Game {
|
|
|
180
186
|
this.renderer.destroy();
|
|
181
187
|
}
|
|
182
188
|
this.createRendererCanvas();
|
|
189
|
+
this.logger.info('initCanvasRenderer');
|
|
183
190
|
this.renderer = new CanvasRenderer(this);
|
|
184
191
|
this.context = this.renderer.context;
|
|
185
192
|
}
|
|
@@ -207,6 +214,8 @@ export class Game {
|
|
|
207
214
|
* @param {object} config - TBD.
|
|
208
215
|
*/
|
|
209
216
|
parseConfig(config) {
|
|
217
|
+
this.logger = config.logger ?? new Logger('phaser');
|
|
218
|
+
this.logger.info('parseConfig');
|
|
210
219
|
this.parseConfigElement(config, 'width', 800);
|
|
211
220
|
this.parseConfigElement(config, 'height', 600);
|
|
212
221
|
this.parseConfigElement(config, 'backgroundColor', 0x000000);
|
|
@@ -225,7 +234,7 @@ export class Game {
|
|
|
225
234
|
this.exceptionHandler = config.exceptionHandler;
|
|
226
235
|
} else {
|
|
227
236
|
this.exceptionHandler = (e, tags) => {
|
|
228
|
-
|
|
237
|
+
this.logger.error(e, tags);
|
|
229
238
|
};
|
|
230
239
|
}
|
|
231
240
|
if (config.parent) {
|
|
@@ -240,9 +249,10 @@ export class Game {
|
|
|
240
249
|
|
|
241
250
|
/**
|
|
242
251
|
* TBD.
|
|
243
|
-
* @param {Event} event - TBD.
|
|
252
|
+
* @param {WebGLContextEvent | Event} event - TBD.
|
|
244
253
|
*/
|
|
245
254
|
contextLost(event) {
|
|
255
|
+
this.logger.info('contextLost', event);
|
|
246
256
|
event.preventDefault();
|
|
247
257
|
if (this.renderer) {
|
|
248
258
|
this.renderer.contextLost = true;
|
|
@@ -251,11 +261,13 @@ export class Game {
|
|
|
251
261
|
|
|
252
262
|
/**
|
|
253
263
|
* TBD.
|
|
264
|
+
* @param {WebGLContextEvent | Event} event - TBD.
|
|
254
265
|
*/
|
|
255
|
-
contextRestored() {
|
|
256
|
-
this.
|
|
257
|
-
// this.cache.clearGLTextures();
|
|
266
|
+
contextRestored(event) {
|
|
267
|
+
this.logger.info('contextRestored', event);
|
|
258
268
|
if (this.renderer) {
|
|
269
|
+
this.renderer.initContext();
|
|
270
|
+
// this.cache.clearGLTextures();
|
|
259
271
|
this.renderer.contextLost = false;
|
|
260
272
|
}
|
|
261
273
|
}
|
|
@@ -288,6 +300,7 @@ export class Game {
|
|
|
288
300
|
* TBD.
|
|
289
301
|
*/
|
|
290
302
|
destroy() {
|
|
303
|
+
this.logger.info('destroy');
|
|
291
304
|
this.isPaused = true;
|
|
292
305
|
|
|
293
306
|
if (!this.cache) {
|
package/src/phaser/core/input.js
CHANGED
|
@@ -162,7 +162,7 @@ export class Input {
|
|
|
162
162
|
*/
|
|
163
163
|
addPointer() {
|
|
164
164
|
if (this.pointers.length >= MAX_POINTERS) {
|
|
165
|
-
|
|
165
|
+
this.game.logger.warn(`Input.addPointer: Maximum limit of ${MAX_POINTERS} pointers reached.`);
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
168
|
const id = this.pointers.length + 1;
|
|
@@ -163,14 +163,14 @@ export class Loader {
|
|
|
163
163
|
*/
|
|
164
164
|
addToFileList(type, key = '', url = null, properties = null, overwrite = false, extension = null) {
|
|
165
165
|
if (key === undefined || key === '') {
|
|
166
|
-
|
|
166
|
+
this.game.logger.warn(`Loader: Invalid or no key given of type ${type}`);
|
|
167
167
|
return this;
|
|
168
168
|
}
|
|
169
169
|
if (url === undefined || url === null) {
|
|
170
170
|
if (extension) {
|
|
171
171
|
url = key + extension;
|
|
172
172
|
} else {
|
|
173
|
-
|
|
173
|
+
this.game.logger.warn(`Loader: No URL given for file type: ${type} key: ${key}`);
|
|
174
174
|
return this;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -525,7 +525,7 @@ export class Loader {
|
|
|
525
525
|
*/
|
|
526
526
|
processLoadQueue() {
|
|
527
527
|
if (!this.isLoading) {
|
|
528
|
-
|
|
528
|
+
this.game.logger.warn('Loader - active loading canceled / reset');
|
|
529
529
|
this.finishedLoading(true);
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
@@ -610,7 +610,7 @@ export class Loader {
|
|
|
610
610
|
} else if (!this._flightQueue.length) {
|
|
611
611
|
// Flight queue is empty but file list is not done being processed.
|
|
612
612
|
// This indicates a critical internal error with no known recovery.
|
|
613
|
-
|
|
613
|
+
this.game.logger.warn('Loader - aborting: processing queue empty, loading may have stalled');
|
|
614
614
|
const scope = this;
|
|
615
615
|
setTimeout(() => {
|
|
616
616
|
scope.finishedLoading(true);
|
|
@@ -651,7 +651,7 @@ export class Loader {
|
|
|
651
651
|
file.error = !!errorMessage;
|
|
652
652
|
if (file.error) {
|
|
653
653
|
file.errorMessage = errorMessage;
|
|
654
|
-
|
|
654
|
+
this.game.logger.warn(file, { errorMessage });
|
|
655
655
|
}
|
|
656
656
|
this.log('asyncComplete', file);
|
|
657
657
|
this.processLoadQueue();
|
|
@@ -664,7 +664,7 @@ export class Loader {
|
|
|
664
664
|
processPack(pack) {
|
|
665
665
|
const packData = pack.data[pack.key];
|
|
666
666
|
if (!packData) {
|
|
667
|
-
|
|
667
|
+
this.game.logger.warn('Missing loader pack key', { key: pack.key });
|
|
668
668
|
return;
|
|
669
669
|
}
|
|
670
670
|
const packDataCompat = Array.isArray(packData) ? packData : packData.files;
|
|
@@ -884,7 +884,7 @@ export class Loader {
|
|
|
884
884
|
*/
|
|
885
885
|
xhrLoadWithXDR() {
|
|
886
886
|
// TODO
|
|
887
|
-
|
|
887
|
+
this.game.logger.warn('loader.xhrLoadWithXDR() is not implemented');
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
/**
|
|
@@ -1054,7 +1054,7 @@ export class Loader {
|
|
|
1054
1054
|
*/
|
|
1055
1055
|
csvLoadComplete() {
|
|
1056
1056
|
// TODO
|
|
1057
|
-
|
|
1057
|
+
this.game.logger.warn('loader.csvLoadComplete() is not implemented');
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
1060
|
/**
|
|
@@ -1068,7 +1068,7 @@ export class Loader {
|
|
|
1068
1068
|
const xml = this.parseXml(data);
|
|
1069
1069
|
if (!xml) {
|
|
1070
1070
|
const responseType = xhr.responseType || xhr.contentType; // contentType for MS-XDomainRequest
|
|
1071
|
-
|
|
1071
|
+
this.game.logger.warn(`Loader - ${file.key}: invalid XML (${responseType})`);
|
|
1072
1072
|
this.asyncComplete(file, 'invalid XML');
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
@@ -1136,7 +1136,7 @@ export class Loader {
|
|
|
1136
1136
|
if (!this.isUseLog) {
|
|
1137
1137
|
return;
|
|
1138
1138
|
}
|
|
1139
|
-
|
|
1139
|
+
this.game.logger.info(`[Loader] ${message}`, data);
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
1142
1142
|
/**
|
package/src/phaser/core/sound.js
CHANGED
|
@@ -268,7 +268,7 @@ export class Sound {
|
|
|
268
268
|
this._tempVolume = this.volume;
|
|
269
269
|
this._tempLoop = this.loop;
|
|
270
270
|
} else {
|
|
271
|
-
|
|
271
|
+
this.game.logger.warn(`Sound.play: audio marker ${marker} does not exist`);
|
|
272
272
|
return this;
|
|
273
273
|
}
|
|
274
274
|
} else {
|
package/src/phaser/core/tween.js
CHANGED
|
@@ -77,7 +77,7 @@ export class Tween {
|
|
|
77
77
|
ease = this.manager.easeMap[ease];
|
|
78
78
|
}
|
|
79
79
|
if (this.isRunning) {
|
|
80
|
-
|
|
80
|
+
this.game.logger.warn('Tween.from cannot be called after Tween.start');
|
|
81
81
|
return this;
|
|
82
82
|
}
|
|
83
83
|
this.timeline.push(new TweenData(this).from(properties, duration, ease, delay, repeat, yoyo));
|
|
@@ -30,7 +30,7 @@ export class CanvasRenderer {
|
|
|
30
30
|
* @param {import('../../core/game.js').Game} game - TBD.
|
|
31
31
|
*/
|
|
32
32
|
constructor(game) {
|
|
33
|
-
detectCapabilities();
|
|
33
|
+
detectCapabilities(game);
|
|
34
34
|
this.type = RENDER_CANVAS;
|
|
35
35
|
this.resolution = game.config.resolution;
|
|
36
36
|
this.clearBeforeRender = game.config.clearBeforeRender;
|
|
@@ -155,4 +155,11 @@ export class CanvasRenderer {
|
|
|
155
155
|
b[BLEND_LUMINOSITY] = useNew ? 'luminosity' : 'source-over';
|
|
156
156
|
window.PhaserRegistry.blendModesCanvas = b;
|
|
157
157
|
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* TBD.
|
|
161
|
+
*/
|
|
162
|
+
initContext() {
|
|
163
|
+
// stub
|
|
164
|
+
}
|
|
158
165
|
}
|
|
@@ -71,18 +71,20 @@ export function tintWithPerPixel(texture, color, canvas) {
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* TBD.
|
|
74
|
+
* @param {import('../../core/game.js').Game} game - TBD.
|
|
74
75
|
* @returns {boolean} TBD.
|
|
76
|
+
* @throws {Error} TBD.
|
|
75
77
|
*/
|
|
76
|
-
export function checkInverseAlpha() {
|
|
78
|
+
export function checkInverseAlpha(game) {
|
|
77
79
|
// Check for DOM
|
|
78
80
|
if (document === undefined) {
|
|
79
|
-
|
|
81
|
+
throw new Error('Error getting Document for checkInverseAlpha()');
|
|
80
82
|
}
|
|
81
83
|
// Create canvas and context
|
|
82
84
|
const canvas = create('CanvasAlpha', 2, 1, true);
|
|
83
85
|
const context = canvas.getContext('2d');
|
|
84
86
|
if (!context) {
|
|
85
|
-
|
|
87
|
+
throw new Error('Error creating Canvas2D context for checkInverseAlpha()');
|
|
86
88
|
}
|
|
87
89
|
// Set canvas fill style
|
|
88
90
|
context.fillStyle = 'rgba(10, 20, 30, 0.5)';
|
|
@@ -112,12 +114,14 @@ export function checkInverseAlpha() {
|
|
|
112
114
|
|
|
113
115
|
/**
|
|
114
116
|
* TBD.
|
|
117
|
+
* @param {import('../../core/game.js').Game} game - TBD.
|
|
115
118
|
* @returns {boolean} TBD.
|
|
119
|
+
* @throws {Error} TBD.
|
|
116
120
|
*/
|
|
117
|
-
export function canUseNewCanvasBlendModes() {
|
|
121
|
+
export function canUseNewCanvasBlendModes(game) {
|
|
118
122
|
// Check for DOM
|
|
119
123
|
if (document === undefined) {
|
|
120
|
-
|
|
124
|
+
throw new Error('Error getting Document for canUseNewCanvasBlendModes()');
|
|
121
125
|
}
|
|
122
126
|
// Create test images
|
|
123
127
|
const pngHead = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/';
|
|
@@ -130,7 +134,7 @@ export function canUseNewCanvasBlendModes() {
|
|
|
130
134
|
const canvas = create('CanvasTinter', 6, 1, true);
|
|
131
135
|
const context = canvas.getContext('2d');
|
|
132
136
|
if (!context) {
|
|
133
|
-
|
|
137
|
+
throw new Error('Error creating Canvas2D context for canUseNewCanvasBlendModes()');
|
|
134
138
|
}
|
|
135
139
|
// Draw test images to canvas
|
|
136
140
|
context.globalCompositeOperation = 'multiply';
|
|
@@ -153,20 +157,25 @@ export function canUseNewCanvasBlendModes() {
|
|
|
153
157
|
|
|
154
158
|
/**
|
|
155
159
|
* TBD.
|
|
160
|
+
* @param {import('../../core/game.js').Game} game - TBD.
|
|
156
161
|
*/
|
|
157
|
-
export function detectCapabilities() {
|
|
162
|
+
export function detectCapabilities(game) {
|
|
158
163
|
if (!window.PhaserRegistry) {
|
|
159
164
|
window.PhaserRegistry = {};
|
|
160
165
|
}
|
|
161
|
-
|
|
162
|
-
window.PhaserRegistry.CAN_CANVAS_HANDLE_ALPHA = checkInverseAlpha();
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
window.PhaserRegistry.
|
|
166
|
+
try {
|
|
167
|
+
window.PhaserRegistry.CAN_CANVAS_HANDLE_ALPHA = checkInverseAlpha(game);
|
|
168
|
+
} catch (error) {
|
|
169
|
+
game.exceptionHandler(error);
|
|
170
|
+
window.PhaserRegistry.CAN_CANVAS_HANDLE_ALPHA = false;
|
|
166
171
|
}
|
|
167
|
-
|
|
168
|
-
window.PhaserRegistry.
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
try {
|
|
173
|
+
window.PhaserRegistry.CAN_CANVAS_USE_MULTIPLY = canUseNewCanvasBlendModes(game);
|
|
174
|
+
} catch (error) {
|
|
175
|
+
game.exceptionHandler(error);
|
|
176
|
+
window.PhaserRegistry.CAN_CANVAS_USE_MULTIPLY = false;
|
|
171
177
|
}
|
|
178
|
+
window.PhaserRegistry.CANVAS_TINT_METHOD = window.PhaserRegistry.CAN_CANVAS_USE_MULTIPLY
|
|
179
|
+
? tintWithMultiply
|
|
180
|
+
: tintWithPerPixel;
|
|
172
181
|
}
|
|
@@ -508,10 +508,11 @@ export class DisplayObject {
|
|
|
508
508
|
|
|
509
509
|
/**
|
|
510
510
|
* TBD.
|
|
511
|
+
* @throws {Error}
|
|
511
512
|
*/
|
|
512
513
|
generateTexture() {
|
|
513
514
|
// TODO
|
|
514
|
-
|
|
515
|
+
throw new Error('display_object.generateTexture() is not implemented');
|
|
515
516
|
}
|
|
516
517
|
|
|
517
518
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class FastSpriteBatch {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
6
|
constructor(gl) {
|
|
7
7
|
this.vertSize = 10;
|
|
@@ -36,7 +36,7 @@ export class FastSpriteBatch {
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* TBD.
|
|
39
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
39
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
40
40
|
*/
|
|
41
41
|
setContext(gl) {
|
|
42
42
|
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} gl - TBD.
|
|
6
|
+
* @param {WebGLRenderingContext & { id: number }} 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
|
-
import { PrimitiveShader } from './shader/primitive.js';
|
|
2
1
|
import { ComplexPrimitiveShader } from './shader/complex.js';
|
|
3
|
-
import { NormalShader } from './shader/normal.js';
|
|
4
2
|
import { FastShader } from './shader/fast.js';
|
|
3
|
+
import { NormalShader } from './shader/normal.js';
|
|
4
|
+
import { PrimitiveShader } from './shader/primitive.js';
|
|
5
5
|
import { StripShader } from './shader/strip.js';
|
|
6
6
|
|
|
7
7
|
export class WebGLShaderManager {
|
|
@@ -26,7 +26,7 @@ export class WebGLShaderManager {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* TBD.
|
|
29
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
29
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
30
30
|
*/
|
|
31
31
|
setContext(gl) {
|
|
32
32
|
this.gl = gl;
|
|
@@ -25,6 +25,8 @@ export class Game {
|
|
|
25
25
|
tweens: TweenManager;
|
|
26
26
|
world: World;
|
|
27
27
|
device: Device;
|
|
28
|
+
/** @type {Logger} */
|
|
29
|
+
logger: Logger;
|
|
28
30
|
/** @type {HTMLCanvasElement} */
|
|
29
31
|
canvas: HTMLCanvasElement;
|
|
30
32
|
/** @type {RenderingContext} */
|
|
@@ -45,8 +47,8 @@ export class Game {
|
|
|
45
47
|
* TBD.
|
|
46
48
|
*/
|
|
47
49
|
initRenderer(): void;
|
|
48
|
-
contextLostBinded: (event: Event) => void;
|
|
49
|
-
contextRestoredBinded: () => void;
|
|
50
|
+
contextLostBinded: (event: WebGLContextEvent | Event) => void;
|
|
51
|
+
contextRestoredBinded: (event: WebGLContextEvent | Event) => void;
|
|
50
52
|
/**
|
|
51
53
|
* TBD.
|
|
52
54
|
* @param {object} config - TBD.
|
|
@@ -62,13 +64,14 @@ export class Game {
|
|
|
62
64
|
exceptionHandler: any;
|
|
63
65
|
/**
|
|
64
66
|
* TBD.
|
|
65
|
-
* @param {Event} event - TBD.
|
|
67
|
+
* @param {WebGLContextEvent | Event} event - TBD.
|
|
66
68
|
*/
|
|
67
|
-
contextLost(event: Event): void;
|
|
69
|
+
contextLost(event: WebGLContextEvent | Event): void;
|
|
68
70
|
/**
|
|
69
71
|
* TBD.
|
|
72
|
+
* @param {WebGLContextEvent | Event} event - TBD.
|
|
70
73
|
*/
|
|
71
|
-
contextRestored(): void;
|
|
74
|
+
contextRestored(event: WebGLContextEvent | Event): void;
|
|
72
75
|
/**
|
|
73
76
|
* TBD.
|
|
74
77
|
* @param {number} time - TBD.
|
|
@@ -94,5 +97,6 @@ import { Time } from './time.js';
|
|
|
94
97
|
import { TweenManager } from './tween_manager.js';
|
|
95
98
|
import { World } from './world.js';
|
|
96
99
|
import { Device } from './device.js';
|
|
100
|
+
import { Logger } from '@vpmedia/simplify';
|
|
97
101
|
import { Signal } from './signal.js';
|
|
98
102
|
//# sourceMappingURL=game.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/game.js"],"names":[],"mappings":"
|
|
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,qBA0DC;IAjDK,2BAyGK,iBAAiB,GAAG,KAAK,UAzGsB;IACpD,+BAoHK,iBAAiB,GAAG,KAAK,UApH8B;IAkDlE;;;;;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;+BArV8B,+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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/renderer.js"],"names":[],"mappings":"AA0BA;IACE;;;OAGG;IACH,kBAFW,OAAO,oBAAoB,EAAE,IAAI,EA6B3C;IAzBC,aAAyB;IACzB,gBAAwC;IACxC,uBAAsD;IACtD,iBAA0C;IAC1C,oBAAuB;IACvB,qBAAwB;IACxB,cAAyC;IACzC,eAA2C;IAC3C,wBAAuB;IACvB,uCAAuC;IACvC,SADW,wBAAwB,CACmC;IAItE,iBAAmB;IACnB,cAAc;IACd;;;;;;MAMC;IAKH;;;OAGG;IACH,aAFW,OAAO,qBAAqB,EAAE,KAAK,QAqB7C;IAED;;;OAGG;IACH,qBAFW,OAAO,QASjB;IAED;;;;OAIG;IACH,cAHW,MAAM,UACN,MAAM,QAchB;IAED;;;;;OAKG;IACH,mCAJW,OAAO,wBAAwB,EAAE,KAAK,WACtC,wBAAwB,UACxB,OAAO,sBAAsB,EAAE,MAAM,QAM/C;IAED;;OAEG;IACH,sBAwBC;CACF;
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/renderer.js"],"names":[],"mappings":"AA0BA;IACE;;;OAGG;IACH,kBAFW,OAAO,oBAAoB,EAAE,IAAI,EA6B3C;IAzBC,aAAyB;IACzB,gBAAwC;IACxC,uBAAsD;IACtD,iBAA0C;IAC1C,oBAAuB;IACvB,qBAAwB;IACxB,cAAyC;IACzC,eAA2C;IAC3C,wBAAuB;IACvB,uCAAuC;IACvC,SADW,wBAAwB,CACmC;IAItE,iBAAmB;IACnB,cAAc;IACd;;;;;;MAMC;IAKH;;;OAGG;IACH,aAFW,OAAO,qBAAqB,EAAE,KAAK,QAqB7C;IAED;;;OAGG;IACH,qBAFW,OAAO,QASjB;IAED;;;;OAIG;IACH,cAHW,MAAM,UACN,MAAM,QAchB;IAED;;;;;OAKG;IACH,mCAJW,OAAO,wBAAwB,EAAE,KAAK,WACtC,wBAAwB,UACxB,OAAO,sBAAsB,EAAE,MAAM,QAM/C;IAED;;OAEG;IACH,sBAwBC;IAED;;OAEG;IACH,oBAEC;CACF;mCA9IkC,aAAa"}
|
|
@@ -21,16 +21,21 @@ export function tintWithMultiply(texture: object, color: object, canvas: HTMLCan
|
|
|
21
21
|
export function tintWithPerPixel(texture: object, color: object, canvas: HTMLCanvasElement): void;
|
|
22
22
|
/**
|
|
23
23
|
* TBD.
|
|
24
|
+
* @param {import('../../core/game.js').Game} game - TBD.
|
|
24
25
|
* @returns {boolean} TBD.
|
|
26
|
+
* @throws {Error} TBD.
|
|
25
27
|
*/
|
|
26
|
-
export function checkInverseAlpha(): boolean;
|
|
28
|
+
export function checkInverseAlpha(game: import("../../core/game.js").Game): boolean;
|
|
27
29
|
/**
|
|
28
30
|
* TBD.
|
|
31
|
+
* @param {import('../../core/game.js').Game} game - TBD.
|
|
29
32
|
* @returns {boolean} TBD.
|
|
33
|
+
* @throws {Error} TBD.
|
|
30
34
|
*/
|
|
31
|
-
export function canUseNewCanvasBlendModes(): boolean;
|
|
35
|
+
export function canUseNewCanvasBlendModes(game: import("../../core/game.js").Game): boolean;
|
|
32
36
|
/**
|
|
33
37
|
* TBD.
|
|
38
|
+
* @param {import('../../core/game.js').Game} game - TBD.
|
|
34
39
|
*/
|
|
35
|
-
export function detectCapabilities(): void;
|
|
40
|
+
export function detectCapabilities(game: import("../../core/game.js").Game): void;
|
|
36
41
|
//# sourceMappingURL=tinter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tinter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/tinter.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,yCAJW,MAAM,SACN,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;GAKG;AACH,0CAJW,MAAM,SACN,MAAM,UACN,iBAAiB,QAgB3B;AAED;;;;;GAKG;AACH,0CAJW,MAAM,SACN,MAAM,UACN,iBAAiB,QA4B3B;AAED
|
|
1
|
+
{"version":3,"file":"tinter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/tinter.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,yCAJW,MAAM,SACN,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;GAKG;AACH,0CAJW,MAAM,SACN,MAAM,UACN,iBAAiB,QAgB3B;AAED;;;;;GAKG;AACH,0CAJW,MAAM,SACN,MAAM,UACN,iBAAiB,QA4B3B;AAED;;;;;GAKG;AACH,wCAJW,OAAO,oBAAoB,EAAE,IAAI,GAC/B,OAAO,CAsCnB;AAED;;;;;GAKG;AACH,gDAJW,OAAO,oBAAoB,EAAE,IAAI,GAC/B,OAAO,CAsCnB;AAED;;;GAGG;AACH,yCAFW,OAAO,oBAAoB,EAAE,IAAI,QAqB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display_object.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/display_object.js"],"names":[],"mappings":"AAOA;IAKI,gBAAkB;IAClB,oBAAuB;IACvB,iBAAmB;IACnB,gBAA+B;IAC/B,aAA4B;IAC5B,aAA4B;IAC5B,cAA6B;IAC7B,iBAAiB;IACjB,cAAc;IACd,aAAmB;IACnB,YAAkB;IAClB,mBAAmB;IACnB,uBAAkC;IAElC,kBAAiC;IAEjC,gBAAsB;IACtB,YAAY;IACZ,YAAY;IACZ,wBAA6C;IAC7C,mBAAyB;IACzB,wCAAiB;IACjB,gBAAkB;IAClB,0BAA6B;IAG/B;;OAEG;IACH,gBA6BC;IAED;;;;OAIG;IACH,gBAHW,aAAa,GACX,aAAa,CAIzB;IAED;;;;;;OAMG;IACH,kBALW,aAAa,SACb,MAAM,GACJ,aAAa,CAazB;IAED;;;;;OAKG;IACH,oBAJW,aAAa,UACb,aAAa,QAcvB;IAED;;;;;OAKG;IACH,qBAJW,aAAa,GACX,MAAM,CASlB;IAED;;;;;OAKG;IACH,qBAJW,aAAa,SACb,MAAM,QAUhB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,GACJ,aAAa,CAYzB;IAED;;;;OAIG;IACH,mBAHW,aAAa,GACX,aAAa,CAQzB;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACJ,aAAa,CASzB;IAED;;;;;;OAMG;IACH,2BALW,MAAM,YACN,MAAM,GACJ,aAAa,EAAE,CAuB3B;IAED;;;;OAIG;IACH,wBAHW,aAAa,GACX,aAAa,CAmFzB;IAtDK,mBAAkC;IA2CtC,sBAA4C;IAa9C;;;;OAIG;IACH,iCAHW,aAAa,GACX,SAAS,CAiGrB;IAED;;;OAGG;IACH,kBAFa,SAAS,CAIrB;IAED;;;;OAIG;IACH,gBAHW,aAAa,GACX,OAAO,CAUnB;IAED;;;OAGG;IACH,2BAFW,MAAM,QA8BhB;IAED;;;OAGG;IACH,4BAFW,MAAM,QAehB;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,mBAEC;IAED
|
|
1
|
+
{"version":3,"file":"display_object.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/display_object.js"],"names":[],"mappings":"AAOA;IAKI,gBAAkB;IAClB,oBAAuB;IACvB,iBAAmB;IACnB,gBAA+B;IAC/B,aAA4B;IAC5B,aAA4B;IAC5B,cAA6B;IAC7B,iBAAiB;IACjB,cAAc;IACd,aAAmB;IACnB,YAAkB;IAClB,mBAAmB;IACnB,uBAAkC;IAElC,kBAAiC;IAEjC,gBAAsB;IACtB,YAAY;IACZ,YAAY;IACZ,wBAA6C;IAC7C,mBAAyB;IACzB,wCAAiB;IACjB,gBAAkB;IAClB,0BAA6B;IAG/B;;OAEG;IACH,gBA6BC;IAED;;;;OAIG;IACH,gBAHW,aAAa,GACX,aAAa,CAIzB;IAED;;;;;;OAMG;IACH,kBALW,aAAa,SACb,MAAM,GACJ,aAAa,CAazB;IAED;;;;;OAKG;IACH,oBAJW,aAAa,UACb,aAAa,QAcvB;IAED;;;;;OAKG;IACH,qBAJW,aAAa,GACX,MAAM,CASlB;IAED;;;;;OAKG;IACH,qBAJW,aAAa,SACb,MAAM,QAUhB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,GACJ,aAAa,CAYzB;IAED;;;;OAIG;IACH,mBAHW,aAAa,GACX,aAAa,CAQzB;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACJ,aAAa,CASzB;IAED;;;;;;OAMG;IACH,2BALW,MAAM,YACN,MAAM,GACJ,aAAa,EAAE,CAuB3B;IAED;;;;OAIG;IACH,wBAHW,aAAa,GACX,aAAa,CAmFzB;IAtDK,mBAAkC;IA2CtC,sBAA4C;IAa9C;;;;OAIG;IACH,iCAHW,aAAa,GACX,SAAS,CAiGrB;IAED;;;OAGG;IACH,kBAFa,SAAS,CAIrB;IAED;;;;OAIG;IACH,gBAHW,aAAa,GACX,OAAO,CAUnB;IAED;;;OAGG;IACH,2BAFW,MAAM,QA8BhB;IAED;;;OAGG;IACH,4BAFW,MAAM,QAehB;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,mBAEC;IAED;;;OAGG;IACH,wBAGC;IAED;;;;OAIG;IACH,mBAHW,KAAK,GACH,KAAK,CAKjB;IAED;;;;;OAKG;IACH,kBAJW,KAAK,QACL,aAAa,GACX,KAAK,CAQjB;IAED;;;OAGG;IACH,kCAFW,MAAM,QAYhB;IAED;;OAEG;IACH,6BAEC;IAED;;OAEG;IACH,4BAMC;IADC,mBAAyB;IAa3B;;OAEG;IACH,yBAQC;IAnBD;;;OAGG;IACH,oBAEC;IAYC,eAAmB;IAWrB;;OAEG;IACH,0BAQC;IAnBD;;;OAGG;IACH,qBAEC;IAYC,gBAAoB;IAWtB;;OAEG;IACH,qBAEC;IAbD;;;OAGG;IACH,gBAEC;IAiBD;;OAEG;IACH,qBAEC;IAbD;;;OAGG;IACH,gBAEC;IASD;;;OAGG;IACH,4BAeC;IAYD;;OAEG;IACH,kDAQC;IAnBD;;;OAGG;IACH,6CAEC;IAiBD;;;OAGG;IACH,sBAEC;IAED;;;OAGG;IACH,sBAEC;IAUD;;OAEG;IACH,2BAEC;IAbD;;;OAGG;IACH,sBAEC;IAiBD;;OAEG;IACH,2BAEC;IAbD;;;OAGG;IACH,sBAEC;IAiBD;;OAEG;IACH,wBAEC;IAbD;;;OAGG;IACH,mBAEC;IAiBD;;OAEG;IACH,yBAEC;IAbD;;;OAGG;IACH,oBAEC;IAiBD;;OAEG;IACH,uBAEC;IAbD;;;OAGG;IACH,kBAEC;IAiBD;;OAEG;IACH,0BAEC;IAbD;;;OAGG;IACH,qBAEC;CAQF;sBA/xBqB,kBAAkB;uBADjB,mBAAmB;0BAEhB,sBAAsB"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export class WebGLBlendModeManager {
|
|
2
|
-
gl: WebGLRenderingContext
|
|
2
|
+
gl: WebGLRenderingContext & {
|
|
3
|
+
id: number;
|
|
4
|
+
};
|
|
3
5
|
currentBlendMode: number;
|
|
4
6
|
/**
|
|
5
7
|
* TBD.
|
|
6
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
8
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
7
9
|
*/
|
|
8
|
-
setContext(gl: WebGLRenderingContext
|
|
10
|
+
setContext(gl: WebGLRenderingContext & {
|
|
11
|
+
id: number;
|
|
12
|
+
}): void;
|
|
9
13
|
/**
|
|
10
14
|
* TBD.
|
|
11
15
|
* @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;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,9 +1,11 @@
|
|
|
1
1
|
export class FastSpriteBatch {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
6
|
+
constructor(gl: WebGLRenderingContext & {
|
|
7
|
+
id: number;
|
|
8
|
+
});
|
|
7
9
|
vertSize: number;
|
|
8
10
|
maxSize: number;
|
|
9
11
|
size: number;
|
|
@@ -21,10 +23,14 @@ export class FastSpriteBatch {
|
|
|
21
23
|
matrix: any;
|
|
22
24
|
/**
|
|
23
25
|
* TBD.
|
|
24
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
26
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
25
27
|
*/
|
|
26
|
-
setContext(gl: WebGLRenderingContext
|
|
27
|
-
|
|
28
|
+
setContext(gl: WebGLRenderingContext & {
|
|
29
|
+
id: number;
|
|
30
|
+
}): void;
|
|
31
|
+
gl: WebGLRenderingContext & {
|
|
32
|
+
id: number;
|
|
33
|
+
};
|
|
28
34
|
/**
|
|
29
35
|
* TBD.
|
|
30
36
|
* @param {object} spriteBatch - TBD.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fast_sprite_batch.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/fast_sprite_batch.js"],"names":[],"mappings":"AAAA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,EA+
|
|
1
|
+
{"version":3,"file":"fast_sprite_batch.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/fast_sprite_batch.js"],"names":[],"mappings":"AAAA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EA+BhD;IA5BC,iBAAkB;IAClB,gBAAmB;IACnB,aAAwB;IAKxB,uBAA0C;IAC1C,qBAA0C;IAC1C,0BAAwB;IACxB,yBAAuB;IACvB,uBAAuB;IASvB,iBAAoB;IACpB,yBAAyB;IACzB,wBAA8B;IAC9B,yBAAyB;IACzB,mBAAyB;IACzB,YAAkB;IAClB,YAAkB;IAIpB;;;OAGG;IACH,eAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QAahD;IAVC;YAHuC,MAAM;MAGjC;IAYd;;;;OAIG;IACH,mBAHW,MAAM,iBACN,MAAM,QAOhB;IAED;;OAEG;IACH,YAEC;IAED;;;OAGG;IACH,oBAFW,MAAM,QAoBhB;IAED;;;OAGG;IACH,qBAFW,OAAO,wBAAwB,EAAE,KAAK,QAuGhD;IAED;;OAEG;IACH,cAwBC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,cAoBC;CACF"}
|
|
@@ -4,10 +4,14 @@ export class WebGLFilterManager {
|
|
|
4
4
|
offsetY: number;
|
|
5
5
|
/**
|
|
6
6
|
* TBD.
|
|
7
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
7
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
8
8
|
*/
|
|
9
|
-
setContext(gl: WebGLRenderingContext
|
|
10
|
-
|
|
9
|
+
setContext(gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
}): void;
|
|
12
|
+
gl: WebGLRenderingContext & {
|
|
13
|
+
id: number;
|
|
14
|
+
};
|
|
11
15
|
texturePool: any[];
|
|
12
16
|
/**
|
|
13
17
|
* 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,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,13 +1,17 @@
|
|
|
1
1
|
export class FilterTexture {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} 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
|
-
|
|
9
|
+
constructor(gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
}, width: number, height: number, scaleMode: number);
|
|
12
|
+
gl: WebGLRenderingContext & {
|
|
13
|
+
id: number;
|
|
14
|
+
};
|
|
11
15
|
frameBuffer: WebGLFramebuffer;
|
|
12
16
|
texture: WebGLTexture;
|
|
13
17
|
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,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,10 +1,14 @@
|
|
|
1
1
|
export class GraphicsData {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
6
|
+
constructor(gl: WebGLRenderingContext & {
|
|
7
|
+
id: number;
|
|
8
|
+
});
|
|
9
|
+
gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
8
12
|
color: number[];
|
|
9
13
|
points: any[];
|
|
10
14
|
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,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,10 +1,14 @@
|
|
|
1
1
|
export class ComplexPrimitiveShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
6
|
+
constructor(gl: WebGLRenderingContext & {
|
|
7
|
+
id: number;
|
|
8
|
+
});
|
|
9
|
+
gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
8
12
|
_UID: string;
|
|
9
13
|
program: WebGLProgram;
|
|
10
14
|
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,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,10 +1,14 @@
|
|
|
1
1
|
export class FastShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
6
|
+
constructor(gl: WebGLRenderingContext & {
|
|
7
|
+
id: number;
|
|
8
|
+
});
|
|
9
|
+
gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
8
12
|
_UID: string;
|
|
9
13
|
program: WebGLProgram;
|
|
10
14
|
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,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,10 +1,14 @@
|
|
|
1
1
|
export class NormalShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
6
|
+
constructor(gl: WebGLRenderingContext & {
|
|
7
|
+
id: number;
|
|
8
|
+
});
|
|
9
|
+
gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
8
12
|
_UID: string;
|
|
9
13
|
program: WebGLProgram;
|
|
10
14
|
fragmentSrc: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normal.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/normal.js"],"names":[],"mappings":"AAyBA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,
|
|
1
|
+
{"version":3,"file":"normal.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/normal.js"],"names":[],"mappings":"AAyBA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAqBhD;IAlBC;YAHuC,MAAM;MAGjC;IACZ,aAA8B;IAC9B,sBAAmB;IACnB,sBAQC;IACD,qBAAqB;IACrB,kBAAoB;IACpB,eAAiB;IACjB,aAAkB;IAClB,kBAAoB;IAItB;;OAEG;IACH,aA+BC;IA1BC,+BAA0D;IAC1D,uCAA0E;IAC1E,mCAAkE;IAClE,iCAA8D;IAE9D,wBAAuE;IACvE,sBAAmE;IACnE,uBAA6D;IAqB/D;;OAEG;IACH,qBAuCC;IAED;;;OAGG;IACH,uBAFW,MAAM,QAiDhB;IAED;;OAEG;IACH,qBA6CC;IAED;;OAEG;IACH,gBAKC;CACF"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export class PrimitiveShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
6
|
+
constructor(gl: WebGLRenderingContext & {
|
|
7
|
+
id: number;
|
|
8
|
+
});
|
|
9
|
+
gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
8
12
|
_UID: string;
|
|
9
13
|
program: WebGLProgram;
|
|
10
14
|
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,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,10 +1,14 @@
|
|
|
1
1
|
export class StripShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl: WebGLRenderingContext
|
|
7
|
-
|
|
6
|
+
constructor(gl: WebGLRenderingContext & {
|
|
7
|
+
id: number;
|
|
8
|
+
});
|
|
9
|
+
gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
8
12
|
_UID: string;
|
|
9
13
|
program: WebGLProgram;
|
|
10
14
|
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,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,5 +1,7 @@
|
|
|
1
1
|
export class WebGLShaderManager {
|
|
2
|
-
gl: WebGLRenderingContext
|
|
2
|
+
gl: WebGLRenderingContext & {
|
|
3
|
+
id: number;
|
|
4
|
+
};
|
|
3
5
|
primitiveShader: PrimitiveShader;
|
|
4
6
|
complexPrimitiveShader: ComplexPrimitiveShader;
|
|
5
7
|
defaultShader: NormalShader;
|
|
@@ -11,9 +13,11 @@ export class WebGLShaderManager {
|
|
|
11
13
|
stack: any[];
|
|
12
14
|
/**
|
|
13
15
|
* TBD.
|
|
14
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
16
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
15
17
|
*/
|
|
16
|
-
setContext(gl: WebGLRenderingContext
|
|
18
|
+
setContext(gl: WebGLRenderingContext & {
|
|
19
|
+
id: number;
|
|
20
|
+
}): void;
|
|
17
21
|
/**
|
|
18
22
|
* TBD.
|
|
19
23
|
* @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;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"}
|
|
@@ -17,10 +17,14 @@ export class WebGLSpriteBatch {
|
|
|
17
17
|
defaultShader: AbstractFilter;
|
|
18
18
|
/**
|
|
19
19
|
* TBD.
|
|
20
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
20
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
21
21
|
*/
|
|
22
|
-
setContext(gl: WebGLRenderingContext
|
|
23
|
-
|
|
22
|
+
setContext(gl: WebGLRenderingContext & {
|
|
23
|
+
id: number;
|
|
24
|
+
}): void;
|
|
25
|
+
gl: WebGLRenderingContext & {
|
|
26
|
+
id: number;
|
|
27
|
+
};
|
|
24
28
|
vertexBuffer: WebGLBuffer;
|
|
25
29
|
indexBuffer: WebGLBuffer;
|
|
26
30
|
currentBlendMode: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprite_batch.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/sprite_batch.js"],"names":[],"mappings":"AAGA;IAKI,iBAAiB;IACjB,aAAgB;IAKhB,sBAAyC;IACzC,wBAAgD;IAChD,oBAA4C;IAC5C,qBAA0C;IAC1C,uBAAuB;IASvB,iBAAoB;IACpB,yBAAyB;IACzB,wBAA8B;IAC9B,eAAiB;IACjB,gBAAkB;IAClB,kBAAoB;IACpB,eAAiB;IACjB,eAAiB;IACjB,8BAQE;IAGJ;;;OAGG;IACH,eAFW,qBAAqB,
|
|
1
|
+
{"version":3,"file":"sprite_batch.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/sprite_batch.js"],"names":[],"mappings":"AAGA;IAKI,iBAAiB;IACjB,aAAgB;IAKhB,sBAAyC;IACzC,wBAAgD;IAChD,oBAA4C;IAC5C,qBAA0C;IAC1C,uBAAuB;IASvB,iBAAoB;IACpB,yBAAyB;IACzB,wBAA8B;IAC9B,eAAiB;IACjB,gBAAkB;IAClB,kBAAoB;IACpB,eAAiB;IACjB,eAAiB;IACjB,8BAQE;IAGJ;;;OAGG;IACH,eAFW,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QAmBhD;IAhBC;YAHuC,MAAM;MAGjC;IAEZ,0BAAqC;IACrC,yBAAoC;IAOpC,yBAA6B;IAQ/B;;;OAGG;IACH,qBAFW,MAAM,QAMhB;IAHC,mBAAkC;IAClC,YAA4D;IAI9D;;OAEG;IACH,YAEC;IAED;;;;OAIG;IACH,eAHW,OAAO,wBAAwB,EAAE,KAAK,UACtC,OAAO,sBAAsB,EAAE,MAAM,QAiG/C;IAED;;OAEG;IACH,2BAEC;IAED;;OAEG;IACH,cA8FC;IAED;;;;;OAKG;IACH,qBAJW,OAAO,mBAAmB,EAAE,WAAW,QACvC,MAAM,cACN,MAAM,QAqBhB;IAED;;OAEG;IACH,aAGC;IAED;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,gBASC;CACF;+BA7V8B,sBAAsB"}
|
|
@@ -4,10 +4,14 @@ export class WebGLStencilManager {
|
|
|
4
4
|
count: number;
|
|
5
5
|
/**
|
|
6
6
|
* TBD.
|
|
7
|
-
* @param {WebGLRenderingContext} gl - TBD.
|
|
7
|
+
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
8
8
|
*/
|
|
9
|
-
setContext(gl: WebGLRenderingContext
|
|
10
|
-
|
|
9
|
+
setContext(gl: WebGLRenderingContext & {
|
|
10
|
+
id: number;
|
|
11
|
+
}): void;
|
|
12
|
+
gl: WebGLRenderingContext & {
|
|
13
|
+
id: number;
|
|
14
|
+
};
|
|
11
15
|
/**
|
|
12
16
|
* TBD.
|
|
13
17
|
*/
|
|
@@ -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,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"}
|