Skip to content

Commit 19c0b47

Browse files
committed
Removed Graphics.lineFxTo and moveFxTo and the associated commands.
1 parent b4f62ff commit 19c0b47

3 files changed

Lines changed: 0 additions & 83 deletions

File tree

src/gameobjects/graphics/Commands.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ module.exports = {
1818
STROKE_PATH: 9,
1919
FILL_TRIANGLE: 10,
2020
STROKE_TRIANGLE: 11,
21-
LINE_FX_TO: 12,
22-
MOVE_FX_TO: 13,
2321
SAVE: 14,
2422
RESTORE: 15,
2523
TRANSLATE: 16,

src/gameobjects/graphics/Graphics.js

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -998,52 +998,6 @@ var Graphics = new Class({
998998
return this;
999999
},
10001000

1001-
/**
1002-
* Draw a line from the current drawing position to the given position with a specific width and color.
1003-
*
1004-
* @method Phaser.GameObjects.Graphics#lineFxTo
1005-
* @since 3.0.0
1006-
*
1007-
* @param {number} x - The x coordinate to draw the line to.
1008-
* @param {number} y - The y coordinate to draw the line to.
1009-
* @param {number} width - The width of the stroke.
1010-
* @param {number} rgb - The color of the stroke.
1011-
*
1012-
* @return {Phaser.GameObjects.Graphics} This Game Object.
1013-
*/
1014-
lineFxTo: function (x, y, width, rgb)
1015-
{
1016-
this.commandBuffer.push(
1017-
Commands.LINE_FX_TO,
1018-
x, y, width, rgb, 1
1019-
);
1020-
1021-
return this;
1022-
},
1023-
1024-
/**
1025-
* Move the current drawing position to the given position and change the pen width and color.
1026-
*
1027-
* @method Phaser.GameObjects.Graphics#moveFxTo
1028-
* @since 3.0.0
1029-
*
1030-
* @param {number} x - The x coordinate to move to.
1031-
* @param {number} y - The y coordinate to move to.
1032-
* @param {number} width - The new stroke width.
1033-
* @param {number} rgb - The new stroke color.
1034-
*
1035-
* @return {Phaser.GameObjects.Graphics} This Game Object.
1036-
*/
1037-
moveFxTo: function (x, y, width, rgb)
1038-
{
1039-
this.commandBuffer.push(
1040-
Commands.MOVE_FX_TO,
1041-
x, y, width, rgb, 1
1042-
);
1043-
1044-
return this;
1045-
},
1046-
10471001
/**
10481002
* Stroke the shape represented by the given array of points.
10491003
*

src/gameobjects/graphics/GraphicsWebGLRenderer.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -311,41 +311,6 @@ var GraphicsWebGLRenderer = function (renderer, src, interpolationPercentage, ca
311311
path.push(lastPath);
312312
break;
313313

314-
case Commands.LINE_FX_TO:
315-
if (lastPath !== null)
316-
{
317-
lastPath.points.push(new Point(
318-
commands[++cmdIndex],
319-
commands[++cmdIndex],
320-
commands[++cmdIndex],
321-
commands[++cmdIndex],
322-
commands[++cmdIndex] * alpha
323-
));
324-
}
325-
else
326-
{
327-
lastPath = new Path(
328-
commands[++cmdIndex],
329-
commands[++cmdIndex],
330-
commands[++cmdIndex],
331-
commands[++cmdIndex],
332-
commands[++cmdIndex] * alpha
333-
);
334-
path.push(lastPath);
335-
}
336-
break;
337-
338-
case Commands.MOVE_FX_TO:
339-
lastPath = new Path(
340-
commands[++cmdIndex],
341-
commands[++cmdIndex],
342-
commands[++cmdIndex],
343-
commands[++cmdIndex],
344-
commands[++cmdIndex] * alpha
345-
);
346-
path.push(lastPath);
347-
break;
348-
349314
case Commands.SAVE:
350315
matrixStack.push(currentMatrix.copyToArray());
351316
break;

0 commit comments

Comments
 (0)