Phaser API Documentation

  Version: 
popFramebuffer([updateScissor], [resetTextures], [setViewport])

Description:

Pops the previous framebuffer from the fbo stack and sets it.

Parameters:

name type arguments Default description
updateScissor boolean <optional> false

If a framebuffer is given, set the gl scissor to match the frame buffer size? Or, if null given, pop the scissor from the stack.

resetTextures boolean <optional> false

Should the WebGL Textures be reset after the new framebuffer is bound?

setViewport boolean <optional> true

Should the WebGL viewport be set?

Returns:
Description:

The Framebuffer that was set, or null if there aren't any more in the stack.

Type:
  • WebGLFramebuffer
Examples:
Since: 3.50.0