Commit graph

28 commits

Author SHA1 Message Date
Richard Davey
87a685dccc Calling CanvasTexture.update will now automatically call refresh if running under WebGL. This happens for both draw and drawFrame, meaning you no longer need to remember to call refresh after drawing to a Canvas Texture in WebGL, keeping it consistent with the Canvas renderer. 2019-08-01 19:27:47 +01:00
Richard Davey
9e9d264973 getPixels defaults to 0x0 2019-07-21 16:18:21 +01:00
Richard Davey
a737cf0de5 Corrected manager type. 2019-07-13 10:50:06 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
0d831ccf71 Texture Types 2019-05-09 12:38:45 +01:00
Richard Davey
ccf677dfa6 Textures typedefs 2019-02-13 15:43:08 +00:00
Richard Davey
70a87a576d Some legacy instances of float moved to number. 2019-02-13 12:39:36 +00:00
Richard Davey
ac1b0d8d85 Added dirty rect arguments to putData method 2019-02-08 19:45:58 +00:00
Richard Davey
eb9ed3463f Lots of namespace and jsdoc fixes 2019-02-01 18:02:58 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
a2723249a3 CanvasTexture.destroy is a new method that specifically handles the destruction of the CanvasTexture and all of its associated typed arrays. This prevents a memory leak when creating and destroying lots of RenderTextures (which are CanvasTexture backed). Fix #4239 2018-12-18 15:21:24 +00:00
Richard Davey
caad527b29 Added getData and putData methods. 2018-12-13 00:30:13 +00:00
Richard Davey
62b489ee04 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-12-11 23:22:04 +00:00
Richard Davey
69e6643800 Added setPixel method. 2018-12-11 23:22:00 +00:00
Richard Davey
d9f89fbde1 Fixed lint error, added docs. 2018-12-11 09:31:56 +00:00
Richard Davey
c239700528 Added getIndex and getPixels methods. 2018-12-11 02:37:00 +00:00
Richard Davey
84bf2e5e93 lint fix 2018-12-08 14:59:07 +00:00
Richard Davey
c3524b345f Added CanvasTexture.drawFrame method. 2018-12-08 13:10:55 +00:00
Richard Davey
7d34db2753 Added clear region arguments 2018-12-07 19:28:38 +00:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc Replace @readOnly with @readonly 2018-10-09 13:40:00 +01:00
Richard Davey
a17b0c2e6c jsdoc fixes 2018-09-27 14:16:09 +01:00
Richard Davey
8ab3240656 Added jsdocs 2018-09-10 20:44:19 +01:00
Richard Davey
4ac490eac8 Added draw method 2018-09-08 01:19:25 +01:00
Richard Davey
9ec4b3433f Updated CanvasTexture class
Fixed jsdoc names.
Added getPixels, imageData, array buffer and other pixel reading properties.
2018-09-07 19:29:58 +01:00
Richard Davey
29aec01b6f Bumping to 3.7.0 2018-05-04 18:51:02 +01:00
Richard Davey
6ff2cc6ba9 The new CanvasTexture class now working and linked to examples. 2018-04-23 23:46:59 +01:00
Richard Davey
4a58ed3935 The start of a new CanvasTexture class 2018-04-23 18:37:44 +01:00