The renderer this System works for.
Get the size of the current width and height. Returns object with width
and height
values.
Bind a framebuffer
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
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
Sets up the renderer context and necessary buffers.
Generic destroy methods to be overridden by the subclass
Detects 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
Disposes framebuffer
framebuffer that has to be disposed of
Forcing creation of stencil buffer for current framebuffer, if it wasn't done before. Used by MaskSystem, when its time to use stencil mask for Graphics element.
Its an alternative for public lazy framebuffer.enableStencil
, in case we need stencil without rebind.
Initialize framebuffer for this context
created GLFramebuffer
resets framebuffer stored state, binds screen framebuffer
should be called before renderTexture reset()
Resize the framebuffer
Set the WebGLRenderingContext's viewport.
X position of viewport
Y position of viewport
Width of viewport
Height of viewport
Update the framebuffer
Generated using TypeDoc
System plugin to the renderer to manage framebuffers.
PIXI