Richard Davey
e7b1d086e7
Moving all of the typedefs to properly namespaced scopes, rather than globals
...
\o/ ~ "Someone, save me!"
2019-02-13 12:35:12 +00:00
Richard Davey
b50e1c78b5
Lots more jsdoc tweaks and improvements
2019-02-12 15:01:54 +00:00
Richard Davey
dc73993fe2
Added jsdoc version numbers
2019-02-12 12:22:25 +00:00
Richard Davey
ccaae460a4
Added jsdoc version numbers to each event
2019-02-12 11:37:58 +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
1eccff1e3b
Fixed jsdoc links and markdown bullet lists
2019-01-18 15:20:56 +00:00
Richard Davey
bc962c25dc
All listeners use the new Events
2019-01-18 13:41:43 +00:00
Richard Davey
25c1a5fe74
Added Texture Manager Events and moved 'ready' responsibility to it
2019-01-17 11:54:41 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
d9f0483437
JSDoc update.
2019-01-07 23:13:07 +00:00
jestarray
5aef34884c
texture optional frame parameters
...
not specifying frame works on said methods
2018-12-21 08:25:42 -08: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
032c7bd405
Merge pull request #4227 from jcyuan/Branch_v3.15.1
...
TS definition improvements in doc for v3.15.1 release
2018-12-13 11:58:27 +00:00
J.C
b6c2934e65
doc improvement for typescript
2018-12-13 17:17:09 +08:00
J.C
a3d2ccf65c
doc improvement for typescript
2018-12-13 17:17:02 +08: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
e9b22500c0
Merge pull request #4097 from Cirras/atlas-to-spritesheet-trimming
...
Improved trim handling for Spritesheets created from trimmed Texture Atlas Frames
2018-10-19 13:38:24 +01:00
Richard Davey
4c4421c47f
Docjam merge
2018-10-19 12:32:43 +01:00
Richard Davey
9dc53d1e5a
The WebGLRenderer method canvasToTexture
has a new optional argument noRepeat
which will stop it from using gl.REPEAT
entirely. This is now used by the Text object to avoid it potentially switching between a REPEAT and CLAMP texture, causing texture black-outs
2018-10-12 15:08:53 +01: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
Cirras
82da94bd46
Improved trim handling for Spritesheets created from trimmed Texture Atlases frames
...
Fixes issue #4096 .
2018-10-06 18:37:37 +10:00
Richard Davey
3944e580cc
Fixed an error in the batchSprite
methods in the Canvas and WebGL Renderers that would incorrectly set the frame dimensions on Sprites with the crop component. This was particularly noticeable on Sprites with trimmed animation frames
2018-09-27 16:49:52 +01:00
Richard Davey
d8fcde46c3
When using CanvasTexture.refresh
or Graphics.generateTexture
it would throw WebGL warnings like 'bindTexture: Attempt to bind a deleted texture'. This was due to the Frames losing sync with the glTexture reference used by their TextureSource. Fix #4050
2018-09-27 14:16:22 +01:00
Richard Davey
a17b0c2e6c
jsdoc fixes
2018-09-27 14:16:09 +01:00
Richard Davey
ab48c1c479
The Texture.getFramesFromTextureSource
method has a new boolean argument includeBase
, which defaults to false
and allows you to set if the base frame should be returned into the array or not.
...
The `Texture.getFramesFromTextureSource` method was returning an array of Frame names by mistake, instead of Frame references. It now returns the Frames themselves.
2018-09-27 14:11:14 +01:00
Richard Davey
855fde1adb
Rebind the source texture
2018-09-13 13:23:42 +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
57758942d1
Account for trim in pixel perfect hit tests. Fix #3938
2018-08-22 17:11:20 +01:00
Richard Davey
2dfe321d67
The getPixelAlpha
and getPixel
methods in the Texture Manager would allow x/y coordinates from outside the cut area of a frame. It now tests to ensure they're within the frame. Fix #3937
2018-08-21 23:25:08 +01:00
Richard Davey
50baa268e3
addBase64
will return intance for chaining
2018-08-07 16:26:15 +01:00
Richard Davey
fbb67ac201
The CanvasRenderer.DrawImage
function has been removed, as has the associated drawImage
property from the Canvas Renderer as they're no longer used.
2018-08-06 15:24:51 +01:00
Richard Davey
177e47cb84
The Texture Manager has a new method called renameTexture
which will let you rename a texture, changing the key to the new one given. All existing Game Objects will still maintain their reference, even after a rename.
2018-08-03 19:03:52 +01:00
Richard Davey
921cc738d9
Render Textures now use the frame source to store the glTexture in, not locally.
2018-08-03 18:51:07 +01:00
Richard Davey
217bfd2343
Sorting out frame access
2018-08-02 17:59:19 +01:00
Richard Davey
2a66e01577
Added source
property so we can purge TSs based on origin
2018-08-02 16:16:46 +01:00
Richard Davey
7566236d9b
Added isRenderTexture
property.
2018-08-02 12:34:57 +01:00
Richard Davey
261cb79d0d
Added addRenderTexture
method.
2018-08-02 12:34:01 +01:00
Richard Davey
3efc800bf7
Use global string to cut down on size a little.
2018-08-02 12:33:48 +01:00
Richard Davey
73524df816
The Game boot event flow has changed slightly. The Game will now listen for a texturesready
event, which is dispatched by the Texture Manager when the default textures have finished processing. Upon receiving this, the Game will emit the ready
event, which all the other systems listen for and respond to. The difference is that the Renderer uses the texturesready
event to ensure that it is the first thing to be activated, before any other system.
2018-08-01 13:18:28 +01:00