photonstorm
f4a1f11429
PIXI.CanvasPool is a new static global created to deal with the issue of resource leaks and continuous DOM node build-up when creating lots of Text or BitmapData objects, or when calling generateTexture
on any display object. The CanvasPool will do its best to re-use out dated canvas elements rather than filling up the DOM with new ones.
...
Sprite.setTexture has a new `destroyBase` parameter - set this to `true` if you know the base used a generated texture that isn't being used by any other sprites. This will free-up the canvas for further re-use by other calls to generateTexture or Text objects.
2015-08-03 16:09:16 +01:00
photonstorm
50516e3d34
Testing CanvasPool.
2015-08-03 14:33:12 +01:00
photonstorm
8eb34f96ce
WebGL context loss and restoration is now handled directly by Phaser.
...
Cache.clearGLTextures empties out all of the GL Textures from Images stored in the cache. This is called automatically when the WebGL context is lost and then restored.
2015-07-22 12:59:32 +01:00
photonstorm
f15fe6706c
All undefined argument checks were changed from if (typeof x === 'undefined')
to if (x === undefined)
removing the typeof check and saving some bytes across the codebase in the process.
2015-07-22 10:37:15 +01:00
Richard Davey
1c9fb614a4
PIXI._CompileShader can now take an array or a string for the fragment src.
2015-07-15 23:20:39 +01:00
photonstorm
87ac0b8f50
jsdoc tweak.
2015-07-08 16:40:40 +01:00
photonstorm
b481402ae4
Due to a Pixi 2 issue TileSprite when running under WebGL didn't respect the world alpha setting and would only work with its own alpha (thanks @hanenbro #1774 )
2015-06-16 17:03:19 +01:00
photonstorm
9b95026cc9
Removed ConvertTintToImage as the Image object it created was never returned or used anywhere, so pointless having.
...
Optimised the canvas creation - before it was creating a new canvas every time it tinted a sprite.
Removed un-used tint method (tint with overlay)
Optimised tintWithMultiply.
2015-05-08 04:14:56 +01:00
photonstorm
9cb7122743
Improved code formatting.
2015-05-08 01:51:06 +01:00
photonstorm
3f51463c7b
PIXI.CanvasTinter.tintWithMultiply was performing a double drawImage operation for no reason. Simplified down to a single drawImage call.
2015-05-03 13:53:02 +01:00
Richard Davey
fa5ed16f7d
Trying something out :)
2015-04-22 04:22:17 +01:00
Richard Davey
be65b08e3b
Close to getting WebGL Tiling Sprites back again - animations now work too, but the placement isn't quite right.
2015-04-22 01:36:12 +01:00
photonstorm
aa9ea30e79
Working through fixing TilingSprites for WebGL.
2015-04-21 17:01:24 +01:00
photonstorm
8981e9603e
Removed Frame.uuid and updating TileSprite to work with animated sprites.
2015-04-21 05:11:19 +01:00
photonstorm
cdfc4ff45b
Pixi.Sprite.renderCanvas and renderWebGL now has a new optional matrix parameter. You can use this to render the Sprite with an alternative transform matrix without actually adjusting the Sprite matrix at all.
2015-04-17 03:20:44 +01:00
photonstorm
36c064511c
Added guards around context.getImageData
calls in BitmapData, Text and Canvas Tinting classes to avoid crashing restricted browsers like Epic Browser. Please understand that several Phaser features won't work correctly with this browser (thanks @Erik3000 #1714 )
2015-04-02 14:47:44 +01:00
photonstorm
e7400be625
Formatting updates.
2015-03-25 12:59:31 +00:00
photonstorm
d717c5c180
Removed final traces of _interactive properties and checks. Also added preUpdate catch.
2015-03-05 14:01:43 +00:00
photonstorm
41396d5ad2
Merged all of the relevant Pixi 2.2.7 fixes in ( #1621 )
2015-02-25 17:04:48 +00:00
photonstorm
819826ce08
Added Polygon.flatten and Polygon.toNumberArray.
...
Fixed Graphics.lineTo if no moveTo has been specified.
Fixed Graphics.drawShape if a mixed-type Polygon has been given.
2015-02-17 18:03:15 +00:00
photonstorm
f561659367
Removed sayHello (covered in Phaser banner)
2015-02-17 15:50:31 +00:00
photonstorm
8892f46a83
PIXI.WebGLRenderer.destroy has been fixed to decrement the glContextId
and remove it from the PIXI.instances global. Game.destroy
now hooks into this. This now means that you can now delete and create your Phaser game over and over without it crashing WebGL after the 4th attempt ( #1260 )
2015-02-11 21:02:15 +00:00
photonstorm
dfc8ff32d2
You can now tint animated Sprites in Canvas mode. Or change the texture atlas frame of a tinted Sprite or Image. Please note that this is pretty expensive (depending in the browser), as the tint is re-applied every time the *frame changes*. The Pixi tint cache has also been removed to allow for subtle tint color shifts and to avoid blowing up memory. So use this feature sparingly! But at least it does now work ( #1070 )
2015-02-10 14:53:55 +00:00
photonstorm
4489a12fd8
Sprite.loadTexture and Image.loadTexture now no longer call updateTexture
if the texture given is a RenderTexture. This fixes issues with RetroFonts in IE11 WebGL as well as other RenderTexture related IE11 problems ( #1310 #1381 #1523 )
2015-02-10 12:27:55 +00:00
photonstorm
2b74d903d4
jsdoc fix.
2015-02-03 16:17:14 +00:00
photonstorm
eff9759f8c
Updated to Pixi 2.2.0 release.
2014-12-17 13:50:28 +00:00
photonstorm
22e8340df7
Fixes issue where Pixi CanvasTint didn't allow for browsers that bit-shift the alpha value on putImageData (Android Stock Browser, I'm looking at you!)
2014-12-09 15:27:26 +00:00
photonstorm
b0d8e43128
And Pixi fixed the premult alpha issue properly. Back in again!
2014-12-03 21:20:41 +00:00
photonstorm
b05d745c40
Reverted changes as they broke all alpha support. Will put back once fixed in Pixi.
2014-12-03 20:54:25 +00:00
photonstorm
9d79605447
Pixi 2.2.0 merged.
2014-12-02 11:01:57 +00:00
photonstorm
2380d1827b
Updated to latest Pixi dev branch.
2014-12-02 09:03:55 +00:00
photonstorm
0ff7fbbe42
Merged latest Pixi fixes.
2014-11-23 12:47:55 +00:00
photonstorm
8622d91dea
Pixi update.
2014-11-15 19:53:38 +00:00
photonstorm
e7356fc575
Pixi 2.1.1 merge.
2014-11-12 22:38:51 +00:00
photonstorm
1352b526c7
Merged final Pixi v2.1.0 release.
2014-11-11 23:24:50 +00:00
photonstorm
b6001c8f21
Latest Pixi v2 fixes.
2014-11-11 13:59:43 +00:00
photonstorm
d37fdd4217
Latest Pixi dev release.
2014-11-11 01:07:52 +00:00
photonstorm
c47d9ea238
Integrated latest development build of Pixi (lots of v2 specific bugs fixed)
2014-11-08 19:26:16 +00:00
photonstorm
f3f022b74a
Final Pixi v2 updates.
2014-10-23 12:32:56 +01:00
photonstorm
474fd8e055
JSDoc fixes.
2014-10-21 23:08:16 +01:00
photonstorm
54570a2b27
Small jsdoc fixes.
2014-10-21 22:48:06 +01:00
photonstorm
35d29170d0
Lots of small jsdoc fixes and DocGen updates.
2014-10-20 00:54:56 +01:00
photonstorm
f75c95144f
Pixi v2 update.
2014-10-17 16:55:15 +01:00
photonstorm
3965862b82
More pixi v2 updates.
2014-10-15 22:12:38 +01:00
photonstorm
0501ca69ae
Merged latest Pixi dev build.
2014-10-13 23:54:22 +01:00
photonstorm
88a97b935b
Pixi v2 weekend updates.
2014-10-13 12:23:24 +01:00
photonstorm
163a6c46f3
Updated to Pixi 2.0.0-dev.
2014-10-10 20:36:04 +01:00
photonstorm
cca955f1fd
Updated to latest version of Pixi.
2014-08-28 23:11:13 +01:00
photonstorm
f9a6d1f376
Updating to Pixi 1.6.1
2014-07-18 11:22:55 +01:00
photonstorm
f0365835c9
Pixi 1.6.1
2014-07-14 12:56:05 +01:00