Commit graph

121 commits

Author SHA1 Message Date
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
Richard Davey
08b7d00ce9 Fixed base64 method 2018-07-27 11:19:12 +01:00
Richard Davey
c1111753f0 Added getBase64 method 2018-07-27 09:43:12 +01:00
Edwin222
a137883628 Merge remote-tracking branch 'upstream/master' 2018-07-14 17:00:38 +09:00
Richard Davey
e388b7dae5 Tidy up 2018-07-11 16:23:57 +01:00
Richard Davey
1a7d726a4b jsdoc udpate 2018-07-11 12:33:40 +01:00
Andrew Groff
5c853c640f Fixing code style and making console warning more concise 2018-07-08 15:12:02 -07:00
Andrew Groff
cca6dd605c Adding console warning to notify users when their frame config does not create any frames 2018-07-08 03:22:04 -07:00
Richard Davey
6483cdacb5 Added canvas crop data 2018-07-06 15:34:12 +01:00
Richard Davey
dfebd940c2 Trim flip fixed and function tidied up 2018-07-06 12:33:39 +01:00
Richard Davey
4e1cbc01d8 Removed object creation 2018-07-06 12:22:05 +01:00
Richard Davey
cca6cd0b83 Fixed trimmed frame crop 2018-07-06 12:14:25 +01:00
Richard Davey
9ead9705c4 Preparing for trim crop support 2018-07-05 23:55:12 +01:00
Richard Davey
5063fe30e5 Fixed cropping when texture frame is flipped 2018-07-05 23:01:26 +01:00
Richard Davey
9bd8fb34a4 Changed canvasData to remove duplicate properties. 2018-07-04 17:01:29 +01:00
Richard Davey
43fc988034 Moved crop UV handler to the Frame method. Cleaner and easier. 2018-07-04 15:18:08 +01:00
Richard Davey
436d92831c Added getCropUVs method 2018-07-03 16:47:53 +01:00
Richard Davey
c82c09914e Updated UV values 2018-07-02 23:51:42 +01:00
Richard Davey
8a7ead03a8 Frame.glTexture is a new property that maps to the WebGL Texture for the Frames Texture Source image. It's used internally by the renderer to avoid expensive object look-ups and is set automatically in the Frame constructor. 2018-07-02 13:43:35 +01:00
Richard Davey
8c312090da Solidified use of pixelArt mode 2018-06-27 15:27:16 +01:00
Richard Davey
7a23378015 Unified use of roundPixels, antialias and pixelArt modes 2018-06-27 15:15:00 +01:00
Edwin222
57f159c64b Add description comments to TextureManager.js 2018-06-23 17:20:49 +09:00
Richard Davey
a49e770f89 Added getPixelAlpha method 2018-06-08 17:50:26 +01:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
f410dc3d88 The Headless renderer was broken due to an invalid access during TextureSource.init. 2018-05-15 08:51:54 +01:00
Richard Davey
29aec01b6f Bumping to 3.7.0 2018-05-04 18:51:02 +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
b0c853a782 Added in normal map support 2018-05-04 14:32:13 +01:00
Richard Davey
c34de6acdf lint fixes and console removal 2018-05-04 02:46:38 +01:00
Richard Davey
77250b1ba3 Shorter warning. 2018-05-04 02:37:41 +01:00
Richard Davey
e1b252e4fd Removed un-used texture parsers and added in new AtlasXML parser. 2018-05-04 02:37:32 +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
cd288b33c2 eslint fixes 2018-04-23 23:52:57 +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
152c68eca3 TextureManager.checkKey will check if a texture key is in-use and log a console warning if it is and then return a boolean. 2018-04-23 23:42:42 +01:00
Richard Davey
649adb51d3 When a TextureSource is destroyed if it's got a canvas texture it's removed from the CanvasPool. 2018-04-23 23:41:05 +01:00
Richard Davey
dd954def9d Updated jsdoc 2018-04-23 23:40:23 +01:00
Richard Davey
0aa071f734 Frame has a new method setSize which allows you to set the frame x, y, width and height and have it update all of the internal properties automatically. 2018-04-23 23:40:12 +01:00
Richard Davey
006d501fbe Added remove method 2018-04-23 19:11:47 +01:00
Richard Davey
4a58ed3935 The start of a new CanvasTexture class 2018-04-23 18:37:44 +01:00
Richard Davey
d96d677bea TextureSource will automatically create a canvas texture if required and holds a reference to the renderer internally 2018-04-23 18:37:30 +01:00
Richard Davey
e685c50f8a Clear manager 2018-04-23 17:30:18 +01:00
Richard Davey
445439e253 The Texture Manager will now emit an addtexture event whenever you add a new texture to it, which includes when you load images files from the Loader (as it automatically populates the Texture Manager). Once you receive an addtexture event you know the image is loaded and the texture is safe to be applied to a Game Object. 2018-04-20 18:57:23 +01:00
Richard Davey
f73e18043f jsdoc fix 2018-04-18 13:35:43 +01:00
Richard Davey
6e77557375 jsdoc fixes 2018-04-18 13:34:22 +01:00
Richard Davey
ea0bdce26a Updated jsdocs 2018-04-16 16:37:07 +01:00