Fixing the Graphics class
1. Removed bounds redundancy. this.bounds was removed and replaced with the inherited this._bounds.
2. Added cachedSprite support to Canvas graphics.
3. Added rounded rect to updateBounds.
4. Pushing the updated cached sprite texture to the gpu now.
5. bounds is no longer overwritten with new PIXI.Rectangle classes, instead only the values x,y,width and height get updated.

Fixes the bug that generateTexture is empty. this.bounds was always defined by an empty PIXI.Rectangle. The condition if(!this.bounds)this.updateBounds(); was always false.

Please review my changes. Hopefully no bugs in it.
1 parent beb9eaa commit 6ad58ed12b6ab30ddf3b6b1ff2cc2c0972ec90eb
@Sebastian Nette Sebastian Nette authored on 17 Oct 2014
Showing 1 changed file
View
src/pixi/primitives/Graphics.js