mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Docs update.
This commit is contained in:
parent
2310e5dc6f
commit
bd30181a2a
1 changed files with 8 additions and 2 deletions
|
@ -1551,7 +1551,13 @@ Phaser.BitmapData.prototype = {
|
|||
/**
|
||||
* Draws the given Phaser.Sprite, Phaser.Image or Phaser.Text to this BitmapData at the coordinates specified.
|
||||
* You can use the optional width and height values to 'stretch' the sprite as it is drawn. This uses drawImage stretching, not scaling.
|
||||
* When drawing it will take into account the Sprites rotation, scale and alpha values.
|
||||
*
|
||||
* The children will be drawn at their `x` and `y` world space coordinates. If this is outside the bounds of the BitmapData they won't be visible.
|
||||
* When drawing it will take into account the rotation, scale, scaleMode, alpha and tint values.
|
||||
*
|
||||
* Note: You should ensure that at least 1 full update has taken place before calling this,
|
||||
* otherwise the objects are likely to render incorrectly, if at all.
|
||||
* You can trigger an update yourself by calling `stage.updateTransform()` before calling `draw`.
|
||||
*
|
||||
* @method Phaser.BitmapData#draw
|
||||
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.RenderTexture} source - The Sprite, Image or Text object to draw onto this BitmapData.
|
||||
|
@ -1582,7 +1588,7 @@ Phaser.BitmapData.prototype = {
|
|||
*
|
||||
* Note: You should ensure that at least 1 full update has taken place before calling this,
|
||||
* otherwise the objects are likely to render incorrectly, if at all.
|
||||
* You can trigger an update yourself by calling `stage.updateTransform()` before calling `drawGroup`.
|
||||
* You can trigger an update yourself by calling `stage.updateTransform()` before calling `drawGroup`.
|
||||
*
|
||||
* @method Phaser.BitmapData#drawGroup
|
||||
* @param {Phaser.Group} group - The Group to draw onto this BitmapData. Can also be Phaser.World.
|
||||
|
|
Loading…
Reference in a new issue