Render Texture added
Render texture finished custom render item added pivot added to display object grunt file updated docs updated
This commit is contained in:
parent
6a049c788e
commit
2a6169a952
94 changed files with 13380 additions and 4464 deletions
|
@ -51,6 +51,8 @@
|
|||
|
||||
<li><a href="../classes/CanvasRenderer.html">CanvasRenderer</a></li>
|
||||
|
||||
<li><a href="../classes/CustomRenderable.html">CustomRenderable</a></li>
|
||||
|
||||
<li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
|
||||
|
||||
<li><a href="../classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
|
||||
|
@ -158,6 +160,18 @@ PIXI.DisplayObjectContainer = function()
|
|||
PIXI.DisplayObjectContainer.constructor = PIXI.DisplayObjectContainer;
|
||||
PIXI.DisplayObjectContainer.prototype = Object.create( PIXI.DisplayObject.prototype );
|
||||
|
||||
//TODO make visible a getter setter
|
||||
/*
|
||||
Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'visible', {
|
||||
get: function() {
|
||||
return this._visible;
|
||||
},
|
||||
set: function(value) {
|
||||
this._visible = value;
|
||||
|
||||
}
|
||||
});*/
|
||||
|
||||
/**
|
||||
* Adds a child to the container.
|
||||
* @method addChild
|
||||
|
@ -228,9 +242,12 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
|
|||
this.stage.__addChild(child);
|
||||
}
|
||||
|
||||
// little webGL!
|
||||
// need to remove any render groups..
|
||||
if(this.__renderGroup)
|
||||
{
|
||||
// being used by a renderTexture.. if it exists then it must be from a render texture;
|
||||
if(child.__renderGroup)child.__renderGroup.removeDisplayObjectAndChildren(child);
|
||||
// add them to the new render group..
|
||||
this.__renderGroup.addDisplayObjectAndChildren(child);
|
||||
}
|
||||
}
|
||||
|
@ -315,10 +332,10 @@ PIXI.DisplayObjectContainer.prototype.removeChild = function(child)
|
|||
{
|
||||
this.stage.__removeChild(child);
|
||||
}
|
||||
// console.log(child.__renderGroup);
|
||||
|
||||
// webGL trim
|
||||
if(child.__renderGroup)
|
||||
{
|
||||
// console.log(">?")
|
||||
child.__renderGroup.removeDisplayObjectAndChildren(child);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue