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: src/gameobjects/RenderTexture.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@
5
5
*/
6
6
7
7
/**
8
-
* A RenderTexture is a special texture that allows any displayObject to be rendered to it.
8
+
* A RenderTexture is a special texture that allows any displayObject to be rendered to it. It allows you to take many complex objects and
9
+
* render them down into a single quad (on WebGL) which can then be used to texture other display objects with. A way of generating textures at run-time.
10
+
*
9
11
* @class Phaser.RenderTexture
10
12
* @constructor
11
13
* @param {Phaser.Game} game - Current game instance.
Copy file name to clipboardExpand all lines: src/gameobjects/SpriteBatch.js
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
7
7
/**
8
8
* Phaser SpriteBatch constructor.
9
+
* The SpriteBatch class is a really fast version of the DisplayObjectContainer built purely for speed, so use when you need a lot of sprites or particles.
10
+
* It's worth mentioning that by default sprite batches are used through-out the renderer, so you only really need to use a SpriteBatch if you have over
11
+
* 1000 sprites that all share the same texture (or texture atlas). It's also useful if running in Canvas mode and you have a lot of un-rotated or un-scaled
12
+
* Sprites as it skips all of the Canvas setTransform calls, which helps performance, especially on mobile devices.
9
13
*
10
14
* @classdesc The SpriteBatch class is a really fast version of the DisplayObjectContainer built solely for speed, so use when you need a lot of sprites or particles.
0 commit comments