Skip to content

Commit 2cf447c

Browse files
committed
PIXI.EarCut has been moved into the Phaser utils folder, and renamed to Phaser.EarCut. All references to PIXI.EarCut have been updated to match the new namespace.
1 parent 1e15012 commit 2cf447c

5 files changed

Lines changed: 91 additions & 92 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
337337
* PIXI.RenderTexture has been removed, and all functionality merged in to Phaser.RenderTexture, to cut down on the number of internal classes and inheritance going on.
338338
* PIXI.TilingSprite has been removed, and all functionality merged in to Phaser.TileSprite, to cut down on the number of internal classes and inheritance going on.
339339
* PIXI.CanvasPool has been moved into the Phaser `utils` folder, and renamed to `Phaser.CanvasPool`. All references to PIXI.CanvasPool have been updated to match the new namespace.
340+
* PIXI.EarCut has been moved into the Phaser `utils` folder, and renamed to `Phaser.EarCut`. All references to PIXI.EarCut have been updated to match the new namespace.
340341

341342
### Bug Fixes
342343

@@ -358,6 +359,7 @@ Please note that Phaser uses a custom build of Pixi and always has done. The fol
358359
* PIXI.SpriteBatch has been removed as it's no longer used internally.
359360
* PIXI.RenderTexture has been removed as it's no longer used internally.
360361
* PIXI.TileSprite has been removed as it's no longer used internally.
362+
* PIXI.EarCut has been removed as it's no longer used internally.
361363

362364
For changes in previous releases please see the extensive [Version History](https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md).
363365

build/config.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@
5151
<script src="$path/src/pixi/display/DisplayObject.js"></script>
5252
<script src="$path/src/pixi/display/DisplayObjectContainer.js"></script>
5353
<script src="$path/src/pixi/display/Sprite.js"></script>
54-
55-
<script src="$path/src/pixi/utils/Utils.js"></script>
56-
<script src="$path/src/pixi/utils/EarCut.js"></script>
57-
<script src="$path/src/pixi/utils/CanvasPool.js"></script>
58-
54+
5955
<script src="$path/src/pixi/renderers/webgl/utils/WebGLShaderUtils.js"></script>
6056
<script src="$path/src/pixi/renderers/webgl/shaders/PixiShader.js"></script>
6157
<script src="$path/src/pixi/renderers/webgl/shaders/PixiFastShader.js"></script>
@@ -101,6 +97,7 @@
10197
<script src="$path/src/Phaser.js"></script>
10298
<script src="$path/src/polyfills.js"></script>
10399
<script src="$path/src/utils/Utils.js"></script>
100+
<script src="$path/src/utils/CanvasPool.js"></script>
104101
105102
<script src="$path/src/geom/Circle.js"></script>
106103
<script src="$path/src/geom/Ellipse.js"></script>

src/pixi/renderers/webgl/utils/WebGLGraphics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ PIXI.WebGLGraphics.buildRoundedRectangle = function(graphicsData, webGLData)
356356

357357
var vecPos = verts.length / 6;
358358

359-
var triangles = PIXI.EarCut.Triangulate(recPoints, null, 2);
359+
var triangles = Phaser.EarCut.Triangulate(recPoints, null, 2);
360360

361361
var i = 0;
362362

@@ -823,7 +823,7 @@ PIXI.WebGLGraphics.buildPoly = function(graphicsData, webGLData)
823823
var g = color[1] * alpha;
824824
var b = color[2] * alpha;
825825

826-
var triangles = PIXI.EarCut.Triangulate(points, null, 2);
826+
var triangles = Phaser.EarCut.Triangulate(points, null, 2);
827827

828828
if(!triangles)return false;
829829

0 commit comments

Comments
 (0)