Ben Richards
b591c3674a
Document usage of WebGLTextureWrapper
in place of WebGLTexture
.
2024-01-29 11:47:39 +13:00
samme
cc8dcaaded
Fix Texture#has()
2023-01-18 17:29:14 -08:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
4a44bd6024
Update Texture.js
2022-10-07 16:23:34 +01:00
Richard Davey
c9e37ed373
Remove calls to resetTextures
2022-10-07 16:09:23 +01:00
Richard Davey
17415902ab
The Texture.destroy
method will only destroy sources, dataSources and frames if they exist, protecting against previously destroyed instances.
2022-09-21 14:06:58 +01:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
samme
c9cbace6f2
Add texture key to the missing frame warning
2021-09-02 10:41:16 -07:00
Matt Jennings
d30c1682d2
check that renderer exists before accessing renderer.type ( fixes #5558 )
2021-02-11 15:43:16 -06:00
Richard Davey
b71bfcf7ba
The error RENDER WARNING: there is no texture bound to the unit ...
would be thrown when destroying a Text Game Object, or any Game Object that uses its own custom texture. Destroying such an object will now reset the WebGL Texture cache. Fix #5464
2021-01-04 15:51:14 +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
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
d5cd37a9ac
Texture.remove
is a new method that allows you to remove a Frame from a Texture based on its name. Fix #4460
2019-08-07 13:03:00 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
f552dde229
Texture.add
will no longer let you add a frame to a texture with the same name or index as one that already exists in the texture. Doing so will now return null
instead of a Frame object, and the frameTotal
will never be incremented. Fix #4459
2019-04-08 14:22:03 +01:00
Richard Davey
56babb5841
Merge pull request #4089 from Cirras/texture-add-base-texture-fix
...
Make Texture.add() firstFrame check more explicit (Fix issue #4088 )
2019-04-08 12:03:17 +01:00
Richard Davey
8cb466b4e9
Clarified the important of the __BASE
frame in a Texture #4285
2019-04-08 11:54:47 +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
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
J.C
b6c2934e65
doc improvement for typescript
2018-12-13 17:17:09 +08:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Cirras
0d7d828311
Make Texture.add() firstFrame check more explicit
...
Fixes issue #4088 where a SpriteSheet created from a trimmed texture atlas frame returns the second frame when the first frame is requested.
2018-10-05 04:29:17 +10: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
217bfd2343
Sorting out frame access
2018-08-02 17:59:19 +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
e388b7dae5
Tidy up
2018-07-11 16:23:57 +01:00
Richard Davey
6d83cae2dc
The Texture class has a new method getDataSourceImage
which will return the raw image data of the data source.
2018-05-04 14:33:02 +01:00
Richard Davey
47f647206f
Added multi atlas support back in. Pack files can now load multi-atlas files too.
2018-05-03 14:19:40 +01:00
Richard Davey
dd954def9d
Updated jsdoc
2018-04-23 23:40:23 +01:00
Richard Davey
e685c50f8a
Clear manager
2018-04-23 17:30:18 +01:00
Richard Davey
f73e18043f
jsdoc fix
2018-04-18 13:35:43 +01:00
Richard Davey
1a73f22780
Removed braces
2018-03-30 13:57:17 +01:00
Richard Davey
51eec113a9
jsdoc tweak
2018-03-30 13:56:53 +01:00
Richard Davey
9f36b5e8b4
const / enum
2018-03-29 15:50:48 +01:00
Richard Davey
63d2b49154
Removed FilterMode and swapped for const
2018-03-21 15:18:07 +00:00
orblazer
dca7996179
Fix multiple types on Physics, Texture and Input
2018-03-20 16:10:19 +01:00
Richard Davey
4de9719fbe
Fixed jsdoc types
2018-03-19 17:05:29 +00:00
Richard Davey
ee42432c74
Texture.get has been optimized to fail first, then error, with a new falsey check. This allows you to skip out specifying animation frames in the animation config without generating a console warning.
2018-03-01 00:36:50 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
4c5150a24c
Added jsdocs
2018-02-08 04:01:44 +00:00
Richard Davey
a802914243
Added in destroy methods for all managers and invoked them from Game
2018-01-31 03:38:10 +00:00
Richard Davey
f0726d4060
Added the ability to provide a data source image to go with a standard image
...
This allows you to load a normal map, specular map, or other format of image based data alongside a regular image and have them bound together internally, without creating duplicate entries in the Texture Manager or loader
2018-01-29 23:38:27 +00:00
Richard Davey
c7dc7fc240
Checks strings and numbers
2018-01-20 17:44:45 +00:00
Richard Davey
af613201f7
Strengthen the frame name check
2018-01-20 16:35:29 +00:00
Richard Davey
4473af243b
Frames can now have customData
stored in them, as well as the Textures. This is populated by all of the atlas data by default and can be added to, either in the JJSON source files or at run-time. Closes #3165 .
2018-01-19 18:23:25 +00:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00
Richard Davey
0d90f75b5f
Splitting the dev branch up into versions.
2016-11-22 01:36:56 +00:00
photonstorm
fd3898742f
Added ability to toggle multi-texture support at run-time.
2016-10-25 16:44:23 +01:00
Richard Davey
120b6eb2bd
Blend Modes work. More optimisations in the batch manager.
2016-10-25 03:57:34 +01:00