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
BitmapData.copy, and by extension any method that uses it, including BitmapData.draw, drawGroup and drawFull, now all support drawing RenderTexture objects. These can either be passed directly, or be the textures of Sprites, such as from a call to generateTexture.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -339,7 +339,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
339
339
340
340
### New Features
341
341
342
-
*
342
+
* BitmapData.copy, and by extension any method that uses it, including BitmapData.draw, drawGroup and drawFull, now all support drawing RenderTexture objects. These can either be passed directly, or be the textures of Sprites, such as from a call to generateTexture.
* You can use the more friendly methods like `copyRect` and `draw` to avoid having to remember them all.
1206
1206
*
1207
1207
* @method Phaser.BitmapData#copy
1208
-
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.BitmapData|Image|HTMLCanvasElement|string} [source] - The source to copy from. If you give a string it will try and find the Image in the Game.Cache first. This is quite expensive so try to provide the image itself.
1208
+
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.BitmapData|Phaser.RenderTexture|Image|HTMLCanvasElement|string} [source] - The source to copy from. If you give a string it will try and find the Image in the Game.Cache first. This is quite expensive so try to provide the image itself.
1209
1209
* @param {number} [x=0] - The x coordinate representing the top-left of the region to copy from the source image.
1210
1210
* @param {number} [y=0] - The y coordinate representing the top-left of the region to copy from the source image.
1211
1211
* @param {number} [width] - The width of the region to copy from the source image. If not specified it will use the full source image width.
* Copies the area defined by the Rectangle parameter from the source image to this BitmapData at the given location.
1399
1412
*
1400
1413
* @method Phaser.BitmapData#copyRect
1401
-
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.BitmapData|Image|string} source - The Image to copy from. If you give a string it will try and find the Image in the Game.Cache.
1414
+
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.BitmapData|Phaser.RenderTexture|Image|string} source - The Image to copy from. If you give a string it will try and find the Image in the Game.Cache.
1402
1415
* @param {Phaser.Rectangle} area - The Rectangle region to copy from the source image.
1403
1416
* @param {number} x - The destination x coordinate to copy the image to.
1404
1417
* @param {number} y - The destination y coordinate to copy the image to.
0 commit comments