@vpmedia/phaser 1.16.0 → 1.18.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 +3 -3
- package/src/phaser/core/animation.js +31 -18
- package/src/phaser/core/animation_manager.js +36 -21
- package/src/phaser/core/animation_parser.js +1 -1
- package/src/phaser/core/array_set.js +17 -9
- package/src/phaser/core/cache.js +61 -45
- package/src/phaser/core/const.js +66 -0
- package/src/phaser/core/device.js +87 -0
- package/src/phaser/core/dom.js +13 -8
- package/src/phaser/core/event_manager.js +2 -1
- package/src/phaser/core/factory.js +21 -21
- package/src/phaser/core/frame_data.js +1 -1
- package/src/phaser/core/game.js +1 -0
- package/src/phaser/core/input.js +37 -20
- package/src/phaser/core/input_handler.js +1 -1
- package/src/phaser/core/input_mouse.js +16 -12
- package/src/phaser/core/input_mspointer.js +7 -7
- package/src/phaser/core/input_pointer.js +26 -17
- package/src/phaser/core/input_touch.js +7 -7
- package/src/phaser/core/loader.js +104 -75
- package/src/phaser/core/raf.js +1 -1
- package/src/phaser/core/scale_manager.js +46 -29
- package/src/phaser/core/scene_manager.js +13 -9
- package/src/phaser/core/sound.js +3 -3
- package/src/phaser/core/sound_manager.js +17 -10
- package/src/phaser/core/sound_sprite.js +7 -4
- package/src/phaser/core/timer.js +38 -26
- package/src/phaser/core/timer_event.js +10 -8
- package/src/phaser/core/tween.js +66 -46
- package/src/phaser/core/tween_data.js +22 -15
- package/src/phaser/core/tween_manager.js +10 -6
- package/src/phaser/display/bitmap_text.js +7 -6
- package/src/phaser/display/canvas/pool.js +1 -1
- package/src/phaser/display/canvas/renderer.js +5 -4
- package/src/phaser/display/canvas/util.js +2 -2
- package/src/phaser/display/display_object.js +33 -16
- package/src/phaser/display/graphics.js +57 -36
- package/src/phaser/display/graphics_data.js +7 -7
- package/src/phaser/display/group.js +28 -20
- package/src/phaser/display/image.js +19 -12
- package/src/phaser/display/sprite_util.js +3 -2
- package/src/phaser/display/text.js +27 -14
- package/src/phaser/display/webgl/abstract_filter.js +2 -2
- package/src/phaser/display/webgl/base_texture.js +2 -2
- package/src/phaser/display/webgl/blend_manager.js +3 -2
- package/src/phaser/display/webgl/earcut_node.js +1 -1
- package/src/phaser/display/webgl/fast_sprite_batch.js +6 -6
- package/src/phaser/display/webgl/filter_manager.js +1 -1
- package/src/phaser/display/webgl/filter_texture.js +2 -2
- package/src/phaser/display/webgl/graphics_data.js +1 -1
- package/src/phaser/display/webgl/render_texture.js +7 -3
- package/src/phaser/display/webgl/renderer.js +9 -6
- 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 +2 -2
- 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 +9 -7
- package/src/phaser/display/webgl/stencil_manager.js +7 -7
- package/src/phaser/display/webgl/texture.js +8 -6
- package/types/phaser/core/animation.d.ts +43 -30
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_manager.d.ts +59 -43
- package/types/phaser/core/animation_manager.d.ts.map +1 -1
- package/types/phaser/core/animation_parser.d.ts +2 -2
- package/types/phaser/core/array_set.d.ts +24 -16
- package/types/phaser/core/array_set.d.ts.map +1 -1
- package/types/phaser/core/cache.d.ts +79 -73
- package/types/phaser/core/cache.d.ts.map +1 -1
- package/types/phaser/core/const.d.ts +88 -22
- package/types/phaser/core/const.d.ts.map +1 -1
- package/types/phaser/core/device.d.ts +87 -0
- package/types/phaser/core/device.d.ts.map +1 -1
- package/types/phaser/core/dom.d.ts +19 -27
- package/types/phaser/core/dom.d.ts.map +1 -1
- package/types/phaser/core/event_manager.d.ts +4 -3
- package/types/phaser/core/event_manager.d.ts.map +1 -1
- package/types/phaser/core/factory.d.ts +28 -28
- package/types/phaser/core/factory.d.ts.map +1 -1
- package/types/phaser/core/frame_data.d.ts +2 -2
- package/types/phaser/core/frame_data.d.ts.map +1 -1
- package/types/phaser/core/game.d.ts +1 -0
- package/types/phaser/core/game.d.ts.map +1 -1
- package/types/phaser/core/input.d.ts +51 -34
- package/types/phaser/core/input.d.ts.map +1 -1
- package/types/phaser/core/input_handler.d.ts +2 -2
- package/types/phaser/core/input_handler.d.ts.map +1 -1
- package/types/phaser/core/input_mouse.d.ts +20 -19
- package/types/phaser/core/input_mouse.d.ts.map +1 -1
- package/types/phaser/core/input_mspointer.d.ts +15 -15
- package/types/phaser/core/input_mspointer.d.ts.map +1 -1
- package/types/phaser/core/input_pointer.d.ts +39 -30
- package/types/phaser/core/input_pointer.d.ts.map +1 -1
- package/types/phaser/core/input_touch.d.ts +15 -15
- package/types/phaser/core/input_touch.d.ts.map +1 -1
- package/types/phaser/core/loader.d.ts +118 -92
- package/types/phaser/core/loader.d.ts.map +1 -1
- package/types/phaser/core/raf.d.ts +3 -3
- package/types/phaser/core/raf.d.ts.map +1 -1
- package/types/phaser/core/scale_manager.d.ts +68 -51
- package/types/phaser/core/scale_manager.d.ts.map +1 -1
- package/types/phaser/core/scene_manager.d.ts +18 -13
- package/types/phaser/core/scene_manager.d.ts.map +1 -1
- package/types/phaser/core/sound.d.ts +4 -4
- package/types/phaser/core/sound.d.ts.map +1 -1
- package/types/phaser/core/sound_manager.d.ts +22 -15
- package/types/phaser/core/sound_manager.d.ts.map +1 -1
- package/types/phaser/core/sound_sprite.d.ts +10 -7
- package/types/phaser/core/sound_sprite.d.ts.map +1 -1
- package/types/phaser/core/timer.d.ts +47 -35
- package/types/phaser/core/timer.d.ts.map +1 -1
- package/types/phaser/core/timer_event.d.ts +15 -14
- package/types/phaser/core/timer_event.d.ts.map +1 -1
- package/types/phaser/core/tween.d.ts +81 -61
- package/types/phaser/core/tween.d.ts.map +1 -1
- package/types/phaser/core/tween_data.d.ts +26 -19
- package/types/phaser/core/tween_data.d.ts.map +1 -1
- package/types/phaser/core/tween_manager.d.ts +16 -12
- package/types/phaser/core/tween_manager.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +10 -9
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/canvas/buffer.d.ts +2 -2
- package/types/phaser/display/canvas/buffer.d.ts.map +1 -1
- package/types/phaser/display/canvas/pool.d.ts +2 -2
- package/types/phaser/display/canvas/pool.d.ts.map +1 -1
- package/types/phaser/display/canvas/renderer.d.ts +5 -4
- package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/types/phaser/display/canvas/util.d.ts +2 -2
- package/types/phaser/display/canvas/util.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +50 -33
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +65 -47
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/graphics_data.d.ts +16 -16
- package/types/phaser/display/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/group.d.ts +38 -30
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +24 -23
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/sprite_util.d.ts +5 -4
- package/types/phaser/display/sprite_util.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +33 -55
- package/types/phaser/display/text.d.ts.map +1 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts +3 -3
- package/types/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
- package/types/phaser/display/webgl/base_texture.d.ts +4 -4
- package/types/phaser/display/webgl/base_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/blend_manager.d.ts +6 -5
- package/types/phaser/display/webgl/blend_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/earcut_node.d.ts +3 -3
- package/types/phaser/display/webgl/earcut_node.d.ts.map +1 -1
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts +12 -12
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_manager.d.ts +3 -3
- package/types/phaser/display/webgl/filter_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_texture.d.ts +7 -7
- package/types/phaser/display/webgl/filter_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +5 -5
- package/types/phaser/display/webgl/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/webgl/render_texture.d.ts +9 -9
- package/types/phaser/display/webgl/render_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/renderer.d.ts +10 -7
- package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +11 -11
- package/types/phaser/display/webgl/shader/complex.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/fast.d.ts +15 -15
- package/types/phaser/display/webgl/shader/fast.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/normal.d.ts +11 -11
- package/types/phaser/display/webgl/shader/normal.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/primitive.d.ts +12 -12
- package/types/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/strip.d.ts +12 -12
- package/types/phaser/display/webgl/shader/strip.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +5 -5
- package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts +16 -14
- package/types/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/stencil_manager.d.ts +12 -12
- package/types/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture.d.ts +15 -12
- package/types/phaser/display/webgl/texture.d.ts.map +1 -1
|
@@ -4,10 +4,10 @@ export class WebGLFilterManager {
|
|
|
4
4
|
offsetY: number;
|
|
5
5
|
/**
|
|
6
6
|
* TBD.
|
|
7
|
-
* @param gl - TBD.
|
|
7
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
8
8
|
*/
|
|
9
|
-
setContext(gl:
|
|
10
|
-
gl:
|
|
9
|
+
setContext(gl: WebGLRenderingContext): void;
|
|
10
|
+
gl: WebGLRenderingContext;
|
|
11
11
|
texturePool: any[];
|
|
12
12
|
/**
|
|
13
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,
|
|
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,16 +1,16 @@
|
|
|
1
1
|
export class FilterTexture {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
* @param {number} width - TBD.
|
|
6
6
|
* @param {number} height - TBD.
|
|
7
|
-
* @param scaleMode
|
|
7
|
+
* @param {number} scaleMode - TBD.
|
|
8
8
|
*/
|
|
9
|
-
constructor(gl:
|
|
10
|
-
gl:
|
|
11
|
-
frameBuffer:
|
|
12
|
-
texture:
|
|
13
|
-
renderBuffer:
|
|
9
|
+
constructor(gl: WebGLRenderingContext, width: number, height: number, scaleMode: number);
|
|
10
|
+
gl: WebGLRenderingContext;
|
|
11
|
+
frameBuffer: WebGLFramebuffer;
|
|
12
|
+
texture: WebGLTexture;
|
|
13
|
+
renderBuffer: WebGLRenderbuffer;
|
|
14
14
|
/**
|
|
15
15
|
* TBD.
|
|
16
16
|
*/
|
|
@@ -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,
|
|
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,15 +1,15 @@
|
|
|
1
1
|
export class GraphicsData {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl:
|
|
7
|
-
gl:
|
|
6
|
+
constructor(gl: WebGLRenderingContext);
|
|
7
|
+
gl: WebGLRenderingContext;
|
|
8
8
|
color: number[];
|
|
9
9
|
points: any[];
|
|
10
10
|
indices: any[];
|
|
11
|
-
buffer:
|
|
12
|
-
indexBuffer:
|
|
11
|
+
buffer: WebGLBuffer;
|
|
12
|
+
indexBuffer: WebGLBuffer;
|
|
13
13
|
mode: number;
|
|
14
14
|
alpha: number;
|
|
15
15
|
dirty: boolean;
|
|
@@ -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,
|
|
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"}
|
|
@@ -3,14 +3,12 @@ export class RenderTexture extends Texture {
|
|
|
3
3
|
* TBD.
|
|
4
4
|
* @param {number} width - TBD.
|
|
5
5
|
* @param {number} height - TBD.
|
|
6
|
-
* @param renderer
|
|
7
|
-
* @param scaleMode
|
|
8
|
-
* @param resolution
|
|
6
|
+
* @param renderer - TBD.
|
|
7
|
+
* @param {number} scaleMode - TBD.
|
|
8
|
+
* @param {number} resolution - TBD.
|
|
9
9
|
*/
|
|
10
|
-
constructor(width: number, height: number, renderer: any, scaleMode:
|
|
10
|
+
constructor(width: number, height: number, renderer: any, scaleMode: number, resolution?: number);
|
|
11
11
|
resolution: number;
|
|
12
|
-
frame: Rectangle;
|
|
13
|
-
crop: Rectangle;
|
|
14
12
|
renderer: any;
|
|
15
13
|
textureBuffer: CanvasBuffer | FilterTexture;
|
|
16
14
|
render: () => void;
|
|
@@ -33,19 +31,21 @@ export class RenderTexture extends Texture {
|
|
|
33
31
|
renderCanvas(): void;
|
|
34
32
|
/**
|
|
35
33
|
* TBD.
|
|
34
|
+
* @returns {HTMLImageElement} TBD.
|
|
36
35
|
*/
|
|
37
36
|
getImage(): HTMLImageElement;
|
|
38
37
|
/**
|
|
39
38
|
* TBD.
|
|
39
|
+
* @returns {string} TBD.
|
|
40
40
|
*/
|
|
41
|
-
getBase64():
|
|
41
|
+
getBase64(): string;
|
|
42
42
|
/**
|
|
43
43
|
* TBD.
|
|
44
|
+
* @returns {HTMLCanvasElement} TBD.
|
|
44
45
|
*/
|
|
45
|
-
getCanvas():
|
|
46
|
+
getCanvas(): HTMLCanvasElement;
|
|
46
47
|
}
|
|
47
48
|
import { Texture } from './texture';
|
|
48
|
-
import { Rectangle } from '../../geom/rectangle';
|
|
49
49
|
import { CanvasBuffer } from '../canvas/buffer';
|
|
50
50
|
import { FilterTexture } from './filter_texture';
|
|
51
51
|
import { Point } from '../../geom/point';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render_texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/render_texture.js"],"names":[],"mappings":"AAQA;IACE;;;;;;;OAOG;IACH,mBANW,MAAM,UACN,MAAM,
|
|
1
|
+
{"version":3,"file":"render_texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/render_texture.js"],"names":[],"mappings":"AAQA;IACE;;;;;;;OAOG;IACH,mBANW,MAAM,UACN,MAAM,4BAEN,MAAM,eACN,MAAM,EAkChB;IAlBC,mBAAqB;IAGrB,cAAwB;IAItB,4CAA+F;IAE/F,mBAA8B;IAC9B,kBAAiE;IAUrE;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,YAFa,gBAAgB,CAM5B;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,iBAAiB,CAK7B;CACF;wBAvGuB,WAAW;6BAGN,kBAAkB;8BADjB,kBAAkB;sBAH1B,kBAAkB"}
|
|
@@ -7,6 +7,7 @@ export class WebGLRenderer {
|
|
|
7
7
|
type: number;
|
|
8
8
|
resolution: any;
|
|
9
9
|
autoResize: boolean;
|
|
10
|
+
contextLost: boolean;
|
|
10
11
|
clearBeforeRender: any;
|
|
11
12
|
width: number;
|
|
12
13
|
height: number;
|
|
@@ -44,17 +45,17 @@ export class WebGLRenderer {
|
|
|
44
45
|
glContextId: any;
|
|
45
46
|
/**
|
|
46
47
|
* TBD.
|
|
47
|
-
* @param stage
|
|
48
|
+
* @param stage - TBD.
|
|
48
49
|
*/
|
|
49
50
|
render(stage: any): void;
|
|
50
51
|
/**
|
|
51
52
|
* TBD.
|
|
52
|
-
* @param displayObject
|
|
53
|
-
* @param projection
|
|
54
|
-
* @param buffer
|
|
55
|
-
* @param matrix - TBD.
|
|
53
|
+
* @param displayObject - TBD.
|
|
54
|
+
* @param projection - TBD.
|
|
55
|
+
* @param buffer - TBD.
|
|
56
|
+
* @param {Matrix} matrix - TBD.
|
|
56
57
|
*/
|
|
57
|
-
renderDisplayObject(displayObject: any, projection: any, buffer: any, matrix:
|
|
58
|
+
renderDisplayObject(displayObject: any, projection: any, buffer: any, matrix: Matrix): void;
|
|
58
59
|
/**
|
|
59
60
|
* TBD.
|
|
60
61
|
* @param {number} width - TBD.
|
|
@@ -63,7 +64,8 @@ export class WebGLRenderer {
|
|
|
63
64
|
resize(width: number, height: number): void;
|
|
64
65
|
/**
|
|
65
66
|
* TBD.
|
|
66
|
-
* @param texture
|
|
67
|
+
* @param texture - TBD.
|
|
68
|
+
* @returns {boolean} TBD.
|
|
67
69
|
*/
|
|
68
70
|
updateTexture(texture: any): boolean;
|
|
69
71
|
/**
|
|
@@ -77,5 +79,6 @@ import { WebGLSpriteBatch } from './sprite_batch';
|
|
|
77
79
|
import { WebGLFilterManager } from './filter_manager';
|
|
78
80
|
import { WebGLStencilManager } from './stencil_manager';
|
|
79
81
|
import { WebGLBlendModeManager } from './blend_manager';
|
|
82
|
+
import { Matrix } from '../../geom/matrix';
|
|
80
83
|
import { Game } from '../../core/game';
|
|
81
84
|
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -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":"AAiCA;IACE;;;OAGG;IACH,kBAFW,IAAI,EAwCd;IArCC,aAAwB;IACxB,gBAAwC;IACxC,oBAAuB;IACvB,qBAAwB;IACxB,uBAAsD;IACtD,cAAuB;IACvB,eAAyB;IACzB,UAAuB;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,QAAc;IAOhB;;OAEG;IACH,qBAUC;IAED;;OAEG;IACH,oBA4BC;IAlBC,iBAAsD;IAoBxD;;;OAGG;IACH,yBAgBC;IAED;;;;;;OAMG;IACH,8EAFW,MAAM,QAoBhB;IAED;;;;OAIG;IACH,cAHW,MAAM,UACN,MAAM,QAchB;IAED;;;;OAIG;IACH,6BAFa,OAAO,CAsCnB;IAED;;OAEG;IACH,sBAwBC;CACF;sBA9QqB,kBAAkB;mCAEL,kBAAkB;iCACpB,gBAAgB;mCAEd,kBAAkB;oCACjB,mBAAmB;sCACjB,iBAAiB;uBANhC,mBAAmB;qBAOrB,iBAAiB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export class ComplexPrimitiveShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl:
|
|
7
|
-
gl:
|
|
6
|
+
constructor(gl: WebGLRenderingContext);
|
|
7
|
+
gl: WebGLRenderingContext;
|
|
8
8
|
_UID: string;
|
|
9
9
|
program: any;
|
|
10
10
|
fragmentSrc: string[];
|
|
@@ -13,15 +13,15 @@ export class ComplexPrimitiveShader {
|
|
|
13
13
|
* TBD.
|
|
14
14
|
*/
|
|
15
15
|
init(): void;
|
|
16
|
-
projectionVector:
|
|
17
|
-
offsetVector:
|
|
18
|
-
tintColor:
|
|
19
|
-
color:
|
|
20
|
-
flipY:
|
|
21
|
-
aVertexPosition:
|
|
16
|
+
projectionVector: WebGLUniformLocation;
|
|
17
|
+
offsetVector: WebGLUniformLocation;
|
|
18
|
+
tintColor: WebGLUniformLocation;
|
|
19
|
+
color: WebGLUniformLocation;
|
|
20
|
+
flipY: WebGLUniformLocation;
|
|
21
|
+
aVertexPosition: number;
|
|
22
22
|
attributes: any[];
|
|
23
|
-
translationMatrix:
|
|
24
|
-
alpha:
|
|
23
|
+
translationMatrix: WebGLUniformLocation;
|
|
24
|
+
alpha: WebGLUniformLocation;
|
|
25
25
|
/**
|
|
26
26
|
* TBD.
|
|
27
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/complex.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,
|
|
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,aAAmB;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,10 @@
|
|
|
1
1
|
export class FastShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl:
|
|
7
|
-
gl:
|
|
6
|
+
constructor(gl: WebGLRenderingContext);
|
|
7
|
+
gl: WebGLRenderingContext;
|
|
8
8
|
_UID: string;
|
|
9
9
|
program: any;
|
|
10
10
|
textureCount: number;
|
|
@@ -14,18 +14,18 @@ export class FastShader {
|
|
|
14
14
|
* TBD.
|
|
15
15
|
*/
|
|
16
16
|
init(): void;
|
|
17
|
-
uSampler:
|
|
18
|
-
projectionVector:
|
|
19
|
-
offsetVector:
|
|
20
|
-
dimensions:
|
|
21
|
-
uMatrix:
|
|
22
|
-
aVertexPosition:
|
|
23
|
-
aPositionCoord:
|
|
24
|
-
aScale:
|
|
25
|
-
aRotation:
|
|
26
|
-
aTextureCoord:
|
|
27
|
-
colorAttribute:
|
|
28
|
-
attributes:
|
|
17
|
+
uSampler: WebGLUniformLocation;
|
|
18
|
+
projectionVector: WebGLUniformLocation;
|
|
19
|
+
offsetVector: WebGLUniformLocation;
|
|
20
|
+
dimensions: WebGLUniformLocation;
|
|
21
|
+
uMatrix: WebGLUniformLocation;
|
|
22
|
+
aVertexPosition: number;
|
|
23
|
+
aPositionCoord: number;
|
|
24
|
+
aScale: number;
|
|
25
|
+
aRotation: number;
|
|
26
|
+
aTextureCoord: number;
|
|
27
|
+
colorAttribute: number;
|
|
28
|
+
attributes: number[];
|
|
29
29
|
/**
|
|
30
30
|
* TBD.
|
|
31
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fast.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/fast.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,
|
|
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,aAAmB;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,10 @@
|
|
|
1
1
|
export class NormalShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl:
|
|
7
|
-
gl:
|
|
6
|
+
constructor(gl: WebGLRenderingContext);
|
|
7
|
+
gl: WebGLRenderingContext;
|
|
8
8
|
_UID: string;
|
|
9
9
|
program: any;
|
|
10
10
|
fragmentSrc: string[];
|
|
@@ -17,20 +17,20 @@ export class NormalShader {
|
|
|
17
17
|
* TBD.
|
|
18
18
|
*/
|
|
19
19
|
init(): void;
|
|
20
|
-
uSampler:
|
|
21
|
-
projectionVector:
|
|
22
|
-
offsetVector:
|
|
23
|
-
dimensions:
|
|
24
|
-
aVertexPosition:
|
|
25
|
-
aTextureCoord:
|
|
26
|
-
colorAttribute:
|
|
20
|
+
uSampler: WebGLUniformLocation;
|
|
21
|
+
projectionVector: WebGLUniformLocation;
|
|
22
|
+
offsetVector: WebGLUniformLocation;
|
|
23
|
+
dimensions: WebGLUniformLocation;
|
|
24
|
+
aVertexPosition: number;
|
|
25
|
+
aTextureCoord: number;
|
|
26
|
+
colorAttribute: number;
|
|
27
27
|
/**
|
|
28
28
|
* TBD.
|
|
29
29
|
*/
|
|
30
30
|
initUniforms(): void;
|
|
31
31
|
/**
|
|
32
32
|
* TBD.
|
|
33
|
-
* @param uniform
|
|
33
|
+
* @param uniform - TBD.
|
|
34
34
|
*/
|
|
35
35
|
initSampler2D(uniform: any): void;
|
|
36
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normal.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/normal.js"],"names":[],"mappings":"AAyBA;IACE;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"normal.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/normal.js"],"names":[],"mappings":"AAyBA;IACE;;;OAGG;IACH,gBAFW,qBAAqB,EAqB/B;IAlBC,0BAAY;IACZ,aAA8B;IAC9B,aAAmB;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,kCA+CC;IAED;;OAEG;IACH,qBA6CC;IAED;;OAEG;IACH,gBAKC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export class PrimitiveShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl:
|
|
7
|
-
gl:
|
|
6
|
+
constructor(gl: WebGLRenderingContext);
|
|
7
|
+
gl: WebGLRenderingContext;
|
|
8
8
|
_UID: string;
|
|
9
9
|
program: any;
|
|
10
10
|
fragmentSrc: string[];
|
|
@@ -13,15 +13,15 @@ export class PrimitiveShader {
|
|
|
13
13
|
* TBD.
|
|
14
14
|
*/
|
|
15
15
|
init(): void;
|
|
16
|
-
projectionVector:
|
|
17
|
-
offsetVector:
|
|
18
|
-
tintColor:
|
|
19
|
-
flipY:
|
|
20
|
-
aVertexPosition:
|
|
21
|
-
colorAttribute:
|
|
22
|
-
attributes:
|
|
23
|
-
translationMatrix:
|
|
24
|
-
alpha:
|
|
16
|
+
projectionVector: WebGLUniformLocation;
|
|
17
|
+
offsetVector: WebGLUniformLocation;
|
|
18
|
+
tintColor: WebGLUniformLocation;
|
|
19
|
+
flipY: WebGLUniformLocation;
|
|
20
|
+
aVertexPosition: number;
|
|
21
|
+
colorAttribute: number;
|
|
22
|
+
attributes: number[];
|
|
23
|
+
translationMatrix: WebGLUniformLocation;
|
|
24
|
+
alpha: WebGLUniformLocation;
|
|
25
25
|
/**
|
|
26
26
|
* TBD.
|
|
27
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/primitive.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,
|
|
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,aAAmB;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,10 @@
|
|
|
1
1
|
export class StripShader {
|
|
2
2
|
/**
|
|
3
3
|
* TBD.
|
|
4
|
-
* @param gl - TBD.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
5
5
|
*/
|
|
6
|
-
constructor(gl:
|
|
7
|
-
gl:
|
|
6
|
+
constructor(gl: WebGLRenderingContext);
|
|
7
|
+
gl: WebGLRenderingContext;
|
|
8
8
|
_UID: string;
|
|
9
9
|
program: any;
|
|
10
10
|
fragmentSrc: string[];
|
|
@@ -13,15 +13,15 @@ export class StripShader {
|
|
|
13
13
|
* TBD.
|
|
14
14
|
*/
|
|
15
15
|
init(): void;
|
|
16
|
-
uSampler:
|
|
17
|
-
projectionVector:
|
|
18
|
-
offsetVector:
|
|
19
|
-
colorAttribute:
|
|
20
|
-
aVertexPosition:
|
|
21
|
-
aTextureCoord:
|
|
22
|
-
attributes:
|
|
23
|
-
translationMatrix:
|
|
24
|
-
alpha:
|
|
16
|
+
uSampler: WebGLUniformLocation;
|
|
17
|
+
projectionVector: WebGLUniformLocation;
|
|
18
|
+
offsetVector: WebGLUniformLocation;
|
|
19
|
+
colorAttribute: number;
|
|
20
|
+
aVertexPosition: number;
|
|
21
|
+
aTextureCoord: number;
|
|
22
|
+
attributes: number[];
|
|
23
|
+
translationMatrix: WebGLUniformLocation;
|
|
24
|
+
alpha: WebGLUniformLocation;
|
|
25
25
|
/**
|
|
26
26
|
* TBD.
|
|
27
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strip.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/strip.js"],"names":[],"mappings":"AAKA;IACE;;;OAGG;IACH,
|
|
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,aAAmB;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,5 @@
|
|
|
1
1
|
export class WebGLShaderManager {
|
|
2
|
-
gl:
|
|
2
|
+
gl: WebGLRenderingContext;
|
|
3
3
|
primitiveShader: PrimitiveShader;
|
|
4
4
|
complexPrimitiveShader: ComplexPrimitiveShader;
|
|
5
5
|
defaultShader: NormalShader;
|
|
@@ -11,17 +11,17 @@ export class WebGLShaderManager {
|
|
|
11
11
|
stack: any[];
|
|
12
12
|
/**
|
|
13
13
|
* TBD.
|
|
14
|
-
* @param gl - TBD.
|
|
14
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
15
15
|
*/
|
|
16
|
-
setContext(gl:
|
|
16
|
+
setContext(gl: WebGLRenderingContext): void;
|
|
17
17
|
/**
|
|
18
18
|
* TBD.
|
|
19
|
-
* @param attribs
|
|
19
|
+
* @param attribs - TBD.
|
|
20
20
|
*/
|
|
21
21
|
setAttribs(attribs: any): void;
|
|
22
22
|
/**
|
|
23
23
|
* TBD.
|
|
24
|
-
* @param shader
|
|
24
|
+
* @param shader - TBD.
|
|
25
25
|
*/
|
|
26
26
|
setShader(shader: any): boolean;
|
|
27
27
|
_currentId: any;
|
|
@@ -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,+BAsBC;IAED;;;OAGG;IACH,gCASC;IALC,gBAA6B;IAC7B,mBAA2B;IAM7B;;OAEG;IACH,gBAWC;CACF;gCAlG+B,oBAAoB;uCACb,kBAAkB;6BAC5B,iBAAiB;2BACnB,eAAe;4BACd,gBAAgB"}
|
|
@@ -17,18 +17,18 @@ export class WebGLSpriteBatch {
|
|
|
17
17
|
defaultShader: AbstractFilter;
|
|
18
18
|
/**
|
|
19
19
|
* TBD.
|
|
20
|
-
* @param gl - TBD.
|
|
20
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
21
21
|
*/
|
|
22
|
-
setContext(gl:
|
|
23
|
-
gl:
|
|
24
|
-
vertexBuffer:
|
|
25
|
-
indexBuffer:
|
|
22
|
+
setContext(gl: WebGLRenderingContext): void;
|
|
23
|
+
gl: WebGLRenderingContext;
|
|
24
|
+
vertexBuffer: WebGLBuffer;
|
|
25
|
+
indexBuffer: WebGLBuffer;
|
|
26
26
|
currentBlendMode: number;
|
|
27
27
|
/**
|
|
28
28
|
* TBD.
|
|
29
|
-
* @param renderSession - TBD.
|
|
29
|
+
* @param {object} renderSession - TBD.
|
|
30
30
|
*/
|
|
31
|
-
begin(renderSession:
|
|
31
|
+
begin(renderSession: object): void;
|
|
32
32
|
renderSession: any;
|
|
33
33
|
shader: any;
|
|
34
34
|
/**
|
|
@@ -37,10 +37,10 @@ export class WebGLSpriteBatch {
|
|
|
37
37
|
end(): void;
|
|
38
38
|
/**
|
|
39
39
|
* TBD.
|
|
40
|
-
* @param sprite
|
|
41
|
-
* @param matrix - TBD.
|
|
40
|
+
* @param sprite - TBD.
|
|
41
|
+
* @param {Matrix} matrix - TBD.
|
|
42
42
|
*/
|
|
43
|
-
render(sprite: any, matrix:
|
|
43
|
+
render(sprite: any, matrix: Matrix): void;
|
|
44
44
|
/**
|
|
45
45
|
* TBD.
|
|
46
46
|
*/
|
|
@@ -51,11 +51,11 @@ export class WebGLSpriteBatch {
|
|
|
51
51
|
flush(): void;
|
|
52
52
|
/**
|
|
53
53
|
* TBD.
|
|
54
|
-
* @param texture
|
|
55
|
-
* @param size
|
|
56
|
-
* @param startIndex
|
|
54
|
+
* @param {BaseTexture} texture - TBD.
|
|
55
|
+
* @param {number} size - TBD.
|
|
56
|
+
* @param {number} startIndex - TBD.
|
|
57
57
|
*/
|
|
58
|
-
renderBatch(texture:
|
|
58
|
+
renderBatch(texture: BaseTexture, size: number, startIndex: number): void;
|
|
59
59
|
/**
|
|
60
60
|
* TBD.
|
|
61
61
|
*/
|
|
@@ -70,4 +70,6 @@ export class WebGLSpriteBatch {
|
|
|
70
70
|
destroy(): void;
|
|
71
71
|
}
|
|
72
72
|
import { AbstractFilter } from './abstract_filter';
|
|
73
|
+
import { Matrix } from '../../geom/matrix';
|
|
74
|
+
import { BaseTexture } from './base_texture';
|
|
73
75
|
//# sourceMappingURL=sprite_batch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprite_batch.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/sprite_batch.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sprite_batch.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/sprite_batch.js"],"names":[],"mappings":"AAKA;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,QAmB/B;IAhBC,0BAAY;IAEZ,0BAAqC;IACrC,yBAAoC;IAOpC,yBAA6B;IAQ/B;;;OAGG;IACH,qBAFW,MAAM,QAMhB;IAHC,mBAAkC;IAClC,YAA4D;IAI9D;;OAEG;IACH,YAEC;IAED;;;;OAIG;IACH,4BAFW,MAAM,QAiGhB;IAED;;OAEG;IACH,2BAEC;IAED;;OAEG;IACH,cA8FC;IAED;;;;;OAKG;IACH,qBAJW,WAAW,QACX,MAAM,cACN,MAAM,QAqBhB;IAED;;OAEG;IACH,aAGC;IAED;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,gBASC;CACF;+BA/V8B,mBAAmB;uBAG3B,mBAAmB;4BADd,gBAAgB"}
|
|
@@ -4,10 +4,10 @@ export class WebGLStencilManager {
|
|
|
4
4
|
count: number;
|
|
5
5
|
/**
|
|
6
6
|
* TBD.
|
|
7
|
-
* @param gl - TBD.
|
|
7
|
+
* @param {WebGLRenderingContext} gl - TBD.
|
|
8
8
|
*/
|
|
9
|
-
setContext(gl:
|
|
10
|
-
gl:
|
|
9
|
+
setContext(gl: WebGLRenderingContext): void;
|
|
10
|
+
gl: WebGLRenderingContext;
|
|
11
11
|
/**
|
|
12
12
|
* TBD.
|
|
13
13
|
*/
|
|
@@ -15,23 +15,23 @@ export class WebGLStencilManager {
|
|
|
15
15
|
/**
|
|
16
16
|
* TBD.
|
|
17
17
|
* @param graphics - TBD.
|
|
18
|
-
* @param webGLData
|
|
19
|
-
* @param renderSession - TBD.
|
|
18
|
+
* @param webGLData - TBD.
|
|
19
|
+
* @param {object} renderSession - TBD.
|
|
20
20
|
*/
|
|
21
|
-
pushStencil(graphics: any, webGLData: any, renderSession:
|
|
21
|
+
pushStencil(graphics: any, webGLData: any, renderSession: object): void;
|
|
22
22
|
/**
|
|
23
23
|
* TBD.
|
|
24
24
|
* @param graphics - TBD.
|
|
25
|
-
* @param webGLData
|
|
26
|
-
* @param renderSession - TBD.
|
|
25
|
+
* @param webGLData - TBD.
|
|
26
|
+
* @param {object} renderSession - TBD.
|
|
27
27
|
*/
|
|
28
|
-
bindGraphics(graphics: any, webGLData: any, renderSession:
|
|
28
|
+
bindGraphics(graphics: any, webGLData: any, renderSession: object): void;
|
|
29
29
|
/**
|
|
30
30
|
* TBD.
|
|
31
31
|
* @param graphics - TBD.
|
|
32
|
-
* @param webGLData
|
|
33
|
-
* @param renderSession - TBD.
|
|
32
|
+
* @param webGLData - TBD.
|
|
33
|
+
* @param {object} renderSession - TBD.
|
|
34
34
|
*/
|
|
35
|
-
popStencil(graphics: any, webGLData: any, renderSession:
|
|
35
|
+
popStencil(graphics: any, webGLData: any, renderSession: object): void;
|
|
36
36
|
}
|
|
37
37
|
//# sourceMappingURL=stencil_manager.d.ts.map
|
|
@@ -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,
|
|
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,0DAFW,MAAM,QAoDhB;IAED;;;;;OAKG;IACH,2DAFW,MAAM,QAyChB;IAED;;;;;OAKG;IACH,yDAFW,MAAM,QAmDhB;CACF"}
|
|
@@ -11,16 +11,16 @@ export class TextureUvs {
|
|
|
11
11
|
export class Texture {
|
|
12
12
|
/**
|
|
13
13
|
* TBD.
|
|
14
|
-
* @param baseTexture - TBD.
|
|
15
|
-
* @param frame - TBD.
|
|
16
|
-
* @param crop - TBD.
|
|
17
|
-
* @param trim - TBD.
|
|
14
|
+
* @param {BaseTexture} baseTexture - TBD.
|
|
15
|
+
* @param {Rectangle} frame - TBD.
|
|
16
|
+
* @param {Rectangle} crop - TBD.
|
|
17
|
+
* @param {Rectangle} trim - TBD.
|
|
18
18
|
*/
|
|
19
|
-
constructor(baseTexture:
|
|
19
|
+
constructor(baseTexture: BaseTexture, frame: Rectangle, crop: Rectangle, trim: Rectangle);
|
|
20
20
|
noFrame: boolean;
|
|
21
|
-
baseTexture:
|
|
22
|
-
frame:
|
|
23
|
-
trim:
|
|
21
|
+
baseTexture: BaseTexture;
|
|
22
|
+
frame: Rectangle;
|
|
23
|
+
trim: Rectangle;
|
|
24
24
|
valid: boolean;
|
|
25
25
|
isTiling: boolean;
|
|
26
26
|
requiresUpdate: boolean;
|
|
@@ -28,24 +28,27 @@ export class Texture {
|
|
|
28
28
|
_uvs: TextureUvs;
|
|
29
29
|
width: number;
|
|
30
30
|
height: number;
|
|
31
|
-
crop:
|
|
31
|
+
crop: Rectangle;
|
|
32
32
|
/**
|
|
33
33
|
* TBD.
|
|
34
34
|
*/
|
|
35
35
|
onBaseTextureLoaded(): void;
|
|
36
36
|
/**
|
|
37
37
|
* TBD.
|
|
38
|
-
* @param destroyBase - TBD.
|
|
38
|
+
* @param {boolean} destroyBase - TBD.
|
|
39
39
|
*/
|
|
40
40
|
destroy(destroyBase?: boolean): void;
|
|
41
41
|
/**
|
|
42
42
|
* TBD.
|
|
43
|
-
* @param frame - TBD.
|
|
43
|
+
* @param {Rectangle} frame - TBD.
|
|
44
|
+
* @throws Error.
|
|
44
45
|
*/
|
|
45
|
-
setFrame(frame:
|
|
46
|
+
setFrame(frame: Rectangle): void;
|
|
46
47
|
/**
|
|
47
48
|
* TBD.
|
|
48
49
|
*/
|
|
49
50
|
_updateUvs(): void;
|
|
50
51
|
}
|
|
52
|
+
import { BaseTexture } from './base_texture';
|
|
53
|
+
import { Rectangle } from '../../geom/rectangle';
|
|
51
54
|
//# sourceMappingURL=texture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/texture.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/texture.js"],"names":[],"mappings":"AAGA;IAKI,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CAEd;AAED;IACE;;;;;;OAMG;IACH,yBALW,WAAW,SACX,SAAS,QACT,SAAS,QACT,SAAS,EA4BnB;IAzBC,iBAAoB;IAQpB,yBAA8B;IAC9B,iBAAkB;IAClB,gBAAgB;IAChB,eAAkB;IAClB,kBAAqB;IACrB,wBAA2B;IAC3B,wBAA2B;IAC3B,iBAAgB;IAChB,cAAc;IACd,eAAe;IACf,gBAA6C;IAS/C;;OAEG;IACH,4BAKC;IAED;;;OAGG;IACH,sBAFW,OAAO,QAOjB;IAED;;;;OAIG;IACH,gBAHW,SAAS,QAoCnB;IAED;;OAEG;IACH,mBAeC;CACF;4BAtI2B,gBAAgB;0BADlB,sBAAsB"}
|