2015-02-17 15:48:33 +00:00
|
|
|
/* global Phaser:true */
|
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2014 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Pixi expects these globals to exist
|
|
|
|
|
|
|
|
if (PIXI.blendModes === undefined)
|
|
|
|
{
|
|
|
|
PIXI.blendModes = Phaser.blendModes;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PIXI.scaleModes === undefined)
|
|
|
|
{
|
|
|
|
PIXI.scaleModes = Phaser.scaleModes;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PIXI.Texture.emptyTexture === undefined)
|
|
|
|
{
|
|
|
|
PIXI.Texture.emptyTexture = new PIXI.Texture(new PIXI.BaseTexture());
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PIXI.DisplayObject._tempMatrix === undefined)
|
|
|
|
{
|
|
|
|
PIXI.DisplayObject._tempMatrix = new PIXI.Matrix();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PIXI.RenderTexture.tempMatrix === undefined)
|
|
|
|
{
|
|
|
|
PIXI.RenderTexture.tempMatrix = new PIXI.Matrix();
|
|
|
|
}
|
2015-02-17 16:39:40 +00:00
|
|
|
|
|
|
|
if (PIXI.Graphics.POLY === undefined)
|
|
|
|
{
|
|
|
|
PIXI.Graphics.POLY = Phaser.POLYGON;
|
|
|
|
PIXI.Graphics.RECT = Phaser.RECTANGLE;
|
|
|
|
PIXI.Graphics.CIRC = Phaser.CIRCLE;
|
|
|
|
PIXI.Graphics.ELIP = Phaser.ELLIPSE;
|
|
|
|
PIXI.Graphics.RREC = Phaser.ROUNDEDRECTANGLE;
|
|
|
|
}
|