Richard Davey
|
8d5c097720
|
Removed un-used import
|
2019-10-01 16:05:18 +01:00 |
|
Richard Davey
|
1cc5b1a66e
|
CanvasRenderer.antialias is a new property, populated by the game config property of the same name (or via the pixelArt property) that will tell the canvas renderer what to set image interpolation to during rendering of Sprites.
|
2019-10-01 14:54:40 +01:00 |
|
Richard Davey
|
f4002471d7
|
Updated context lost / restored handlers
|
2019-07-17 16:38:00 +01:00 |
|
Richard Davey
|
2df5335991
|
Added snapshotCanvas method
|
2019-07-15 17:02:46 +01:00 |
|
Richard Davey
|
5106b2c935
|
Animations with custom pivots, like those created in Texture Packer with the pivot option enabled, would be mis-aligned if flipped. They now render in the correct position, regardless of scale or flip on either axis. Fix #4155
|
2019-07-03 14:01:48 +01:00 |
|
Richard Davey
|
47b1d755a7
|
Fixed a bug in the WebGL and Canvas Renderers where a Sprite with a flipX or flipY value set would render the offset frames slightly out of place, causing the animation to appear jittery. Also, the sprite would be out of place by its origin. Fix #4636 #3813
|
2019-07-03 11:11:25 +01:00 |
|
Richard Davey
|
254eef9787
|
Use the event constant instead of a string
|
2019-06-06 15:56:45 +01:00 |
|
Richard Davey
|
12bcda98a6
|
Added support for a desynchronized context and alpha support in 2D
|
2019-06-04 19:13:49 +01:00 |
|
Richard Davey
|
c91ed91ce3
|
License link update
|
2019-05-10 16:15:04 +01:00 |
|
Richard Davey
|
a6341a97a8
|
Fixed Types references
|
2019-05-09 15:32:53 +01:00 |
|
Richard Davey
|
11d6f2e802
|
Renderer Types
|
2019-05-09 12:36:36 +01:00 |
|
Richard Davey
|
186970bd69
|
Render the Camera masks
|
2019-04-11 17:10:03 +01:00 |
|
Richard Davey
|
42cb39749f
|
Matter and Snapshot typedefs
|
2019-02-13 15:22:29 +00:00 |
|
Richard Davey
|
60542a25cc
|
Numerous jsdoc and TS related fixes
|
2019-02-04 17:16:08 +00:00 |
|
Richard Davey
|
f59f51ffd0
|
Added snapshotState, removed the old properties and added the new snapshotArea and snapshotPixel methods.
|
2019-01-25 17:28:39 +00:00 |
|
Richard Davey
|
1eccff1e3b
|
Fixed jsdoc links and markdown bullet lists
|
2019-01-18 15:20:56 +00:00 |
|
Richard Davey
|
e6b74304b5
|
Added Camera pre and post render events.
|
2019-01-17 12:02:14 +00:00 |
|
Richard Davey
|
aa341854c7
|
Happy New Year
|
2019-01-15 16:20:22 +00:00 |
|
Richard Davey
|
d7e7feed19
|
Dimensions are now set in the onResize handlers.
|
2019-01-11 16:44:08 +00:00 |
|
Richard Davey
|
e79404256f
|
Removed autoResize. Dimensions now taken from Scale Manager.
|
2019-01-10 13:41:49 +00:00 |
|
Richard Davey
|
2780babe10
|
Final Doc Jam merge
|
2018-12-03 15:16:23 +00:00 |
|
Richard Davey
|
fafc597b4c
|
Added fillRect back in for non-transparent canvas
|
2018-11-28 15:49:24 +00:00 |
|
Richard Davey
|
b0df6892b5
|
The Canvas SetTransform method would save the context state, but it wasn't restored at the end in the following Game Objects: Dynamic Bitmap Text, Graphics, Arc, Curve, Ellipse, Grid, IsoBox, IsoTriangle, Line, Polygon, Rectangle, Star and Triangle. These now all restore the context, meaning if you're using non-canvas sized cameras in Canvas mode, it will now render beyond just the first custom camera.
|
2018-11-27 13:54:59 +00:00 |
|
Richard Davey
|
5147fb281a
|
Added new Blend Modes.
|
2018-11-13 15:10:25 +00:00 |
|
Richard Davey
|
1b51ef1130
|
Remove fillRect. CSS now handles the background color.
|
2018-11-13 15:09:42 +00:00 |
|
Richard Davey
|
a1273e42b8
|
Added ERASE blend mode
|
2018-11-13 10:31:56 +00:00 |
|
Richard Davey
|
217e273896
|
Added context save to stop fillRect bug (issue #4056)
|
2018-10-24 12:39:48 +01:00 |
|
Richard Davey
|
4c4421c47f
|
Docjam merge
|
2018-10-19 12:32:43 +01:00 |
|
Richard Davey
|
557955e057
|
Merging Scale Manager and Spine Plugin back into master
|
2018-10-18 14:59:27 +01:00 |
|
Richard Davey
|
ae9c3b6f56
|
Tidying up for 3.15 release
|
2018-10-16 15:10:49 +01:00 |
|
Richard Davey
|
240914ee03
|
Fixed some types and removed resize calls
|
2018-10-11 17:02:14 +01:00 |
|
Richard Davey
|
4b1c762296
|
Updated @memberOf to @memberof
|
2018-10-10 10:49:13 +01: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
|
5ec26fa62d
|
Cameras now emit prerender and postrender events if they are set to render to textures.
|
2018-09-14 15:53:06 +01:00 |
|
Richard Davey
|
9aeba9e73e
|
Fixed jsdoc
|
2018-09-10 23:30:42 +01:00 |
|
Richard Davey
|
f9e498353d
|
Fixed lack of TempMatrix for Graphics generateTexture
|
2018-08-06 16:19:30 +01:00 |
|
Richard Davey
|
faeed47b5e
|
eslint fixes
|
2018-08-06 15:32:08 +01:00 |
|
Richard Davey
|
e3f5590fc3
|
Use var to cut down on bytes
|
2018-08-06 15:29:36 +01:00 |
|
Richard Davey
|
26cc84522d
|
The CanvasRenderer.BlitImage function has been removed, as has the associated blitImage property from the Canvas Renderer as they're no longer used.
|
2018-08-06 15:29:27 +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
|
708a857a26
|
SetTransform is a new Canvas Renderer function that consolidates the process of preparing a Game Object for rendering, without actually rendering it. This is used internally by the Graphics and Bitmap Text classes.
|
2018-08-03 19:02:43 +01:00 |
|
Richard Davey
|
ca68904953
|
The Canvas Renderer has a new batchSprite method that consolidates the process of drawing a texture-based Game Object to the canvas. It processes the alpha, blend mode and matrix calculations in a single function and now is used by nearly all Game Object canvas renderers.
|
2018-08-03 18:53:50 +01:00 |
|
Richard Davey
|
fc0dc13930
|
Removed use of currentBlendMode and currentAlpha
|
2018-08-03 01:53:51 +01:00 |
|
Richard Davey
|
9f44896a3f
|
The Blend Mode is now set directly in all Canvas Renderers without comparing it to what's stored in the Canvas Renderer. This fixes problems where the blend mode would be lost between two different Game Objects because they restored the context, but didn't update the renderer flag. Game Objects in Canvas can now mix and match blend modes across the display list.
|
2018-08-03 01:29:18 +01:00 |
|
Richard Davey
|
286f36cd1e
|
Added ability for the Canvas Renderer to change context.
|
2018-08-02 14:57:37 +01:00 |
|
Richard Davey
|
a4db967b19
|
Added 4 temp matrices to the Canvas renderer.
|
2018-07-31 23:23:04 +01:00 |
|
Richard Davey
|
ec5bd1912e
|
GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases.
|
2018-07-19 13:19:02 +01:00 |
|
Richard Davey
|
b6a1033dbd
|
Fixed Camera FX for scaled camera sizes
|
2018-07-18 15:03:06 +01:00 |
|
Richard Davey
|
0db16889e6
|
Use new Camera viewport values
|
2018-07-18 14:32:06 +01:00 |
|
Richard Davey
|
1c473afa84
|
Cameras draw their backgrounds correctly at higher resolutions
|
2018-07-17 23:26:30 +01:00 |
|