BitmapData#render()

render() → {Phaser.BitmapData}

If the game is running in WebGL this will push the texture up to the GPU if it's dirty.
This is called automatically if the BitmapData is being used by a Sprite, otherwise you need to remember to call it in your render function.
If you wish to suppress this functionality set BitmapData.disableTextureUpload to true.

Returns

This BitmapData object for method chaining.

Source code: gameobjects/BitmapData.js (Line 2004)
doc_phaser
2017-02-14 10:37:11
Comments
Leave a Comment

Please login to continue.