Richard Davey
|
a60660a474
|
Create on READY
|
2022-09-28 20:57:42 +01:00 |
|
Richard Davey
|
e3503ef8b4
|
All of the following Texture Manager methods will now allow you to pass in a Phaser Texture as the source parameter: addSpriteSheet , addAtlas , addAtlasJSONArray , addAtlasJSONHash , addAtlasXML and addAtlasUnity . This allows you to add sprite sheet or atlas data to existing textures, or textures that came from external sources, such as SVG files, canvas elements or Dynamic Textures.
|
2022-09-28 20:34:34 +01:00 |
|
Richard Davey
|
676f0db838
|
Added Stamp
|
2022-09-28 19:53:49 +01:00 |
|
Richard Davey
|
0e57db40d4
|
Improved docs
|
2022-09-28 19:09:35 +01:00 |
|
Richard Davey
|
d64878736f
|
Testing out the new DynamicTexture
|
2022-09-27 23:39:23 +01:00 |
|
Richard Davey
|
e15f2414d6
|
Update TextureManager.js
|
2022-09-26 23:18:12 +01:00 |
|
Richard Davey
|
1283ca8198
|
The TextureManager.get methof can now accept a Frame instance as its parameter, which will return the frames parent Texture.
|
2022-09-26 17:18:04 +01:00 |
|
Richard Davey
|
25ab9f329d
|
TextureManager.parseFrame is a new method that will return a Texture Frame instance from the given argument, which can be a string, array, object or Texture instance.
|
2022-09-26 15:28:41 +01:00 |
|
Richard Davey
|
618891bcda
|
The TextureManager.addSpriteSheet method will now allow you to pass in a Phaser Texture as the 2nd parameter. This allows you to add sprite sheet data to textures that came from external sources, such as SVG files or canvas elements.
|
2022-09-15 22:30:59 +01:00 |
|
Richard Davey
|
bc7e5f9c79
|
Merge pull request #6196 from samme/feature/texture-add-remove-key-events
Add texture add/remove key events
|
2022-08-24 21:20:13 +01:00 |
|
samme
|
7824876bd7
|
Add texture add/remove key events
- Phaser.Textures.Events.ADD_KEY
- Phaser.Textures.Events.REMOVE_KEY
|
2022-08-24 10:13:58 -07:00 |
|
samme
|
01735b5a5c
|
Exclude __WHITE in getTextureKeys()
|
2022-08-23 10:38:51 -07:00 |
|
Richard Davey
|
0258714887
|
Update TextureManager.js
|
2022-08-19 16:44:55 +01:00 |
|
Richard Davey
|
7c4eff9251
|
The CanvasFeatures tests and the TextureManager _tempContext now specify the { willReadFrequently: true } hint to inform the browser the canvas is to be read from, not composited.
|
2022-08-18 18:01:28 +01:00 |
|
Richard Davey
|
59fbcc5ca3
|
Updated copyright year
|
2022-02-28 14:29:51 +00:00 |
|
Richard Davey
|
a4308cfa3a
|
Skips Canvas drawImage calls if invalid frame sizes given. Fix #5951
|
2022-02-03 16:44:24 +00:00 |
|
Richard Davey
|
e4bbc4dec7
|
TextureManager#addCompressedTexture is a new method that will add a compressed texture, and optionally atlas data into the Texture Manager and return a Texture object than any Sprite can use.
|
2021-10-06 18:43:20 +01:00 |
|
Sebastian Fast
|
df9f367b95
|
#5689 moved _pending to beginning of function
|
2021-05-13 10:52:06 +02:00 |
|
Richard Davey
|
abf90070ba
|
Update TextureManager.js
|
2020-11-26 11:24:32 +00:00 |
|
Richard Davey
|
417f7684c3
|
More integer to number changes
|
2020-11-23 10:32:00 +00:00 |
|
Richard Davey
|
02c34cd64e
|
Replace integer with number
|
2020-11-23 10:22:13 +00:00 |
|
Hexus
|
ef022cd3df
|
Implemented reading WebGL texture dimensions automatically when adding them to the TextureManager
|
2020-11-18 00:49:19 +00:00 |
|
Richard Davey
|
c8a99f00f2
|
Improved JSDocs
|
2020-10-03 10:15:19 +01:00 |
|
Richard Davey
|
e368c479a0
|
The TextureManager now generates a new texture with the key __WHITE durings its boot process. This is a pure white 4x4 texture used by the Graphics pipelines.
|
2020-09-14 14:54:58 +01:00 |
|
Richard Davey
|
3183f1e7de
|
Finished JSDocs
|
2020-02-04 17:16:19 +00:00 |
|
Richard Davey
|
8f52fe59bb
|
Completed JSDocs
|
2020-02-04 14:56:28 +00:00 |
|
Richard Davey
|
ff65e69cd1
|
Changed copyright date to 2020
|
2020-01-15 12:07:09 +00:00 |
|
J.C
|
8d259cd6c2
|
add missing parameters for addGLTexture method for TS def
|
2019-10-23 17:45:48 +08:00 |
|
Richard Davey
|
69346bb1d3
|
TextureManager.get can now accept either a string-based key, or a Texture instance, as its parameter.
|
2019-10-09 10:49:47 +01:00 |
|
Richard Davey
|
7d2b34f8ed
|
Warn if invalid texture source
|
2019-07-15 15:42:25 +01:00 |
|
Richard Davey
|
4f87c7d441
|
Updated docs and frame source checks
|
2019-07-08 15:24:12 +01:00 |
|
Richard Davey
|
1e9ef314c9
|
Added addGLTexture method to save WebGL Textures directly into the Texture Manager.
|
2019-06-21 16:10:26 +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
|
382fed3de7
|
Added TextureManager.removeKey method and invoke it from Texture.destroy. Fix #4461
|
2019-04-06 11:35:58 +01:00 |
|
Richard Davey
|
ccf677dfa6
|
Textures typedefs
|
2019-02-13 15:43:08 +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 |
|
J.C
|
a3d2ccf65c
|
doc improvement for typescript
|
2018-12-13 17:17:02 +08:00 |
|
Richard Davey
|
4b1c762296
|
Updated @memberOf to @memberof
|
2018-10-10 10:49:13 +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
|
261cb79d0d
|
Added addRenderTexture method.
|
2018-08-02 12:34:01 +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 |
|