The renderer this System works for.
Protected
CONTEXT_Protected
glReadonly
managedA list of managed framebuffers.
Protected
msaaProtected
unknownFramebuffer 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.
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
Protected
canReturns 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
Optional
mask: BUFFER_BITSBitwise OR of masks that indicate the buffers to be cleared, by default COLOR and DEPTH buffers.
Protected
contextSets up the renderer context and necessary buffers.
Generic destroy methods to be overridden by the subclass
Protected
detectDetects 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.
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
Protected
initProtected
Initialize framebuffer for this context
Resets framebuffer stored state, binds screen framebuffer. Should be called before renderTexture reset().
Protected
resizeSet the WebGLRenderingContext's viewport.
X position of viewport
Y position of viewport
Width of viewport
Height of viewport
Protected
update
System plugin to the renderer to manage framebuffers.
Memberof
PIXI