Phaser API Documentation

  Version: 
bind([adjustViewport], [width], [height])

Description:

Pushes this Render Target as the current frame buffer of the renderer.

If autoClear is set, then clears the texture.

If adjustViewport is true then it will flush the renderer and then adjust the GL viewport.

Parameters:

name type arguments Default description
adjustViewport boolean <optional> false

Adjust the GL viewport by calling RenderTarget.adjustViewport ?

width number <optional>

Optional new width of this Render Target.

height number <optional>

Optional new height of this Render Target.

Since: 3.50.0