The renderer this System works for.
Readonly
managedA list of managed framebuffers.
Get the size of the current width and height. Returns object with width
and height
values.
Bind a framebuffer.
Optional
framebuffer: FramebufferOptional
frame: Rectangleframe, default is framebuffer size
Optional
mipLevel: numberoptional mip level to set on the framebuffer - defaults to 0
Only works with WebGL2
blits framebuffer to another of the same or bigger size after that target framebuffer is bound
Fails with WebGL warning if blits multisample framebuffer to different size
Optional
framebuffer: Framebufferby default it blits "into itself", from renderBuffer to texture.
Optional
sourcePixels: Rectanglesource rectangle in pixels
Optional
destPixels: Rectangledest rectangle in pixels, assumed to be the same as sourcePixels
Clear the color of the context
Red value from 0 to 1
Green value from 0 to 1
Blue value from 0 to 1
Alpha value from 0 to 1
Optional
mask: BUFFER_BITSBitwise OR of masks that indicate the buffers to be cleared, by default COLOR and DEPTH buffers.
Generic destroy methods to be overridden by the subclass
Disposes all framebuffers, but not textures bound to them.
Optional
contextLost: booleanIf context was lost, we suppress all delete function calls
Disposes framebuffer.
framebuffer that has to be disposed of
Optional
contextLost: booleanIf context was lost, we suppress all delete function calls
Resets framebuffer stored state, binds screen framebuffer. Should be called before renderTexture reset().
Set the WebGLRenderingContext's viewport.
X position of viewport
Y position of viewport
Width of viewport
Height of viewport
System plugin to the renderer to manage framebuffers.
Memberof
PIXI