Added setStageReference to DisplayObject
Removed unused reference to PIXI.gl (no longer used)
This commit is contained in:
parent
c74d9615ca
commit
29cdd079d3
4 changed files with 12 additions and 14 deletions
|
@ -1145,6 +1145,11 @@ PIXI.DisplayObject.prototype.getLocalBounds = function()
|
|||
return bounds;
|
||||
};
|
||||
|
||||
PIXI.DisplayObject.prototype.setStageReference = function(stage)
|
||||
{
|
||||
this.stage = stage;
|
||||
if(this._interactive)this.stage.dirty = true;
|
||||
};
|
||||
|
||||
PIXI.DisplayObject.prototype._renderWebGL = function(renderSession)
|
||||
{
|
||||
|
@ -4926,12 +4931,6 @@ PIXI.WebGLGraphics.buildPoly = function(graphicsData, webGLData)
|
|||
|
||||
PIXI._defaultFrame = new PIXI.Rectangle(0,0,1,1);
|
||||
|
||||
// an instance of the gl context..
|
||||
// only one at the moment :/
|
||||
PIXI.gl = null;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* the WebGLRenderer is draws the stage and all its content onto a webGL enabled canvas. This renderer
|
||||
* should be used for browsers support webGL. This Render works by automatically managing webGLBatchs.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -446,6 +446,11 @@ PIXI.DisplayObject.prototype.getLocalBounds = function()
|
|||
return bounds;
|
||||
};
|
||||
|
||||
PIXI.DisplayObject.prototype.setStageReference = function(stage)
|
||||
{
|
||||
this.stage = stage;
|
||||
if(this._interactive)this.stage.dirty = true;
|
||||
};
|
||||
|
||||
PIXI.DisplayObject.prototype._renderWebGL = function(renderSession)
|
||||
{
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
PIXI._defaultFrame = new PIXI.Rectangle(0,0,1,1);
|
||||
|
||||
// an instance of the gl context..
|
||||
// only one at the moment :/
|
||||
PIXI.gl = null;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* the WebGLRenderer is draws the stage and all its content onto a webGL enabled canvas. This renderer
|
||||
* should be used for browsers support webGL. This Render works by automatically managing webGLBatchs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue