The renderer this System works for.
ProtectedCONTEXT_ProtectedglReadonlymanagedA list of managed framebuffers.
ProtectedmsaaProtectedunknownFramebuffer value that shows that we don't know what is bound.
Get the size of the current width and height. Returns object with width and height values.
Bind a framebuffer.
Optionalframebuffer: FramebufferOptionalframe: Rectangleframe, default is framebuffer size
OptionalmipLevel: 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
Optionalframebuffer: Framebufferby default it blits "into itself", from renderBuffer to texture.
OptionalsourcePixels: Rectanglesource rectangle in pixels
OptionaldestPixels: Rectangledest rectangle in pixels, assumed to be the same as sourcePixels
ProtectedcanReturns true if the frame buffer can be multisampled.
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
Optionalmask: BUFFER_BITSBitwise OR of masks that indicate the buffers to be cleared, by default COLOR and DEPTH buffers.
ProtectedcontextSets up the renderer context and necessary buffers.
Generic destroy methods to be overridden by the subclass
ProtecteddetectDetects number of samples that is not more than a param but as close to it as possible
number of samples
Disposes all framebuffers, but not textures bound to them.
OptionalcontextLost: booleanIf context was lost, we suppress all delete function calls
Disposes framebuffer.
framebuffer that has to be disposed of
OptionalcontextLost: booleanIf context was lost, we suppress all delete function calls
ProtectedinitProtectedInitialize framebuffer for this context
Resets framebuffer stored state, binds screen framebuffer. Should be called before renderTexture reset().
ProtectedresizeSet the WebGLRenderingContext's viewport.
X position of viewport
Y position of viewport
Width of viewport
Height of viewport
Protectedupdate
System plugin to the renderer to manage framebuffers.
Memberof
PIXI