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 |
|
Richard Davey
|
072cc0e21b
|
Added dirty Camera support and updated internal properties to set the flag
|
2018-07-12 01:13:34 +01:00 |
|
Richard Davey
|
fdd4a8f8f3
|
Tidied up DrawImage to re-use vars and cut down code
|
2018-07-06 15:55:20 +01:00 |
|
Richard Davey
|
e620f3e308
|
Updated to use matrix and support crop
|
2018-07-06 15:34:25 +01:00 |
|
Richard Davey
|
9bd8fb34a4
|
Changed canvasData to remove duplicate properties.
|
2018-07-04 17:01:29 +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 |
|
Richard Davey
|
7aa46657c2
|
Tidying up jsdocs and changing float to number
|
2018-06-26 23:19:14 +01:00 |
|
Richard Davey
|
c6c9b25fdc
|
Camera.alpha (and its related method Camera.setAlpha ) allows you to get an alpha level for the entire camera. This impacts everything it is rendering, even if those objects also have their own alpha values too. You can tween the property to make the camera contents fade in / out, or you can set it as needed in your game.
|
2018-06-25 17:35:36 +01:00 |
|
Richard Davey
|
90ba2608fa
|
Added in Camera alpha support to all canvas renderers
|
2018-06-25 16:24:08 +01:00 |
|
Richard Davey
|
7a4b29872e
|
Allow for custom canvas and context game config options. Game.context now set in WebGL mode. Allows WebGL2 contexts to be passed in. Fix #3653
|
2018-05-10 12:25:33 +01:00 |
|
Richard Davey
|
e37b183038
|
Completed all jsdocs for the Camera class
|
2018-04-15 05:05:03 +01:00 |
|
Richard Davey
|
380d4afb92
|
Swapping to new camera effects system
|
2018-04-14 17:38:48 +01:00 |
|
Richard Davey
|
b7ae0295bc
|
No need to use globalAlpha or run fillRect twice.
|
2018-04-07 17:52:10 +01:00 |
|
Richard Davey
|
57c5ca657b
|
Small refactoring
|
2018-04-05 11:01:24 +01:00 |
|
Richard Davey
|
4f6239dadb
|
jsdoc and eslint fixes
|
2018-04-05 09:02:36 +01:00 |
|
Felipe Alfonso
|
7b275e2c62
|
DrawImage works with parent matrix
|
2018-04-04 12:31:45 -03:00 |
|
Richard Davey
|
66c2c7a359
|
change types
|
2018-03-30 13:51:32 +01:00 |
|
Richard Davey
|
f1e646c9ee
|
jsdoc fixes
|
2018-03-28 15:39:57 +01:00 |
|