You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG-v3.50.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,11 +214,20 @@ All of the internal functions, such as `batchQuad` and `batchSprite` have been u
214
214
*`WebGLRenderer.setFramebuffer` has a new optional boolean parameter `resetTextures` which will reset the WebGL Textures, if set to `true` (which is the default).
215
215
*`WebGLRenderer.isBooted` is a new boolean property that lets you know if the rendere has fully finished booting.
216
216
* The `WebGLRenderer` now extends the Event Emitter, allowing you to listen to renderer specific events.
217
-
*`Phaser.Renderer.WebGL.Events` is a new WebGL Renderer namespace for events.
218
-
*`WebGL.Events.PRE_RENDER` is a new event dispatched by the WebGL Renderer. This happens right at the start of the render process.
219
-
*`WebGL.Events.RENDER` is a new event dispatched by the WebGL Renderer. This happens once for every camera, in every Scene at the start of its render process.
220
-
*`WebGL.Events.POST_RENDER` is a new event dispatched by the WebGL Renderer. This happens right at the end of the render process.
221
-
*`WebGL.Events.RESIZE` is a new event dispatched by the WebGL Renderer whenever it is resized.
217
+
*`WebGLRenderer.defaultCamera` has been removed as it's not used anywhere internally any longer.
218
+
219
+
### WebGL and Canvas Renderer Events
220
+
221
+
*`Phaser.Renderer.Events` is a new namespace for events emited by the Canvas and WebGL Renderers.
222
+
*`Renderer.Events.PRE_RENDER` is a new event dispatched by the Phaser Renderer. This happens right at the start of the render process.
223
+
*`Renderer.Events.RENDER` is a new event dispatched by the Phaser Renderer. This happens once for every camera, in every Scene at the start of its render process.
224
+
*`Renderer.Events.POST_RENDER` is a new event dispatched by the Phaser Renderer. This happens right at the end of the render process.
225
+
*`Renderer.Events.RESIZE` is a new event dispatched by the Phaser Renderer whenever it is resized.
226
+
227
+
### Canvas Renderer Updates
228
+
229
+
*`CanvasRenderer.isBooted` is a new boolean property that lets you know if the rendere has fully finished booting.
230
+
* The `CanvasRenderer` now extends the Event Emitter, allowing you to listen to renderer specific events.
222
231
223
232
### Camera - New Features, Updates and API Changes
* The Canvas Renderer is responsible for managing 2D canvas rendering contexts, including the one used by the Game's canvas. It tracks the internal state of a given context and can renderer textured Game Objects to it, taking into account alpha, blending, and scaling.
21
+
* The Canvas Renderer is responsible for managing 2D canvas rendering contexts,
22
+
* including the one used by the Games canvas. It tracks the internal state of a
23
+
* given context and can renderer textured Game Objects to it, taking into
24
+
* account alpha, blending, and scaling.
19
25
*
20
26
* @class CanvasRenderer
27
+
* @extends Phaser.Events.EventEmitter
21
28
* @memberof Phaser.Renderer.Canvas
22
29
* @constructor
23
30
* @since 3.0.0
@@ -26,10 +33,30 @@ var TransformMatrix = require('../../gameobjects/components/TransformMatrix');
26
33
*/
27
34
varCanvasRenderer=newClass({
28
35
36
+
Extends: EventEmitter,
37
+
29
38
initialize:
30
39
31
40
functionCanvasRenderer(game)
32
41
{
42
+
EventEmitter.call(this);
43
+
44
+
vargameConfig=game.config;
45
+
46
+
/**
47
+
* The local configuration settings of the CanvasRenderer.
0 commit comments