| Name | Type | Description |
|---|---|---|
renderer |
PIXI.Renderer |
The renderer this System works for. |
Extends
Members
-
managedFramebuffers Array.<PIXI.Framebuffer> readonly
-
A list of managed framebuffers
-
renderer PIXI.Renderer inherited
-
The renderer this manager works for.
-
Get the size of the current width and height. Returns object with
widthandheightvalues. -
Framebuffer value that shows that we don't know what is bound
Methods
-
Bind a framebuffer
Name Type Description framebufferPIXI.Framebuffer framePIXI.Rectangle optional frame, default is framebuffer size
-
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
Name Type Description framebufferPIXI.Framebuffer optional by default it blits "into itself", from renderBuffer to texture.
sourcePixelsPIXI.Rectangle optional source rectangle in pixels
destPixelsPIXI.Rectangle optional dest rectangle in pixels, assumed to be the same as sourcePixels
-
Clear the color of the context
Name Type Default Description rNumber Red value from 0 to 1
gNumber Green value from 0 to 1
bNumber Blue value from 0 to 1
aNumber Alpha value from 0 to 1
maskPIXI.BUFFER_BITS BUFFER_BITS.COLOR | BUFFER_BITS.DEPTH optional Bitwise OR of masks that indicate the buffers to be cleared, by default COLOR and DEPTH buffers.
-
Sets up the renderer context and necessary buffers.
-
destroy () inherited
-
Generic destroy methods to be overridden by the subclass
-
detectSamples (samples)PIXI.MSAA_QUALITY
-
Detects number of samples that is not more than a param but as close to it as possible
Name Type Description samplesPIXI.MSAA_QUALITY number of samples
Returns:
Type Description PIXI.MSAA_QUALITY - recommended number of samples
-
Disposes all framebuffers, but not textures bound to them
Name Type Default Description contextLostboolean false optional If context was lost, we suppress all delete function calls
-
Disposes framebuffer
Name Type Default Description framebufferPIXI.Framebuffer framebuffer that has to be disposed of
contextLostboolean false optional If context was lost, we suppress all delete function calls
-
initFramebuffer (framebuffer)PIXI.GLFramebuffer protected
-
Initialize framebuffer for this context
Name Type Description framebufferPIXI.Framebuffer Returns:
Type Description PIXI.GLFramebuffer created GLFramebuffer -
resets framebuffer stored state, binds screen framebuffer
should be called before renderTexture reset()
-
Resize the framebuffer
Name Type Description framebufferPIXI.Framebuffer -
Set the WebGLRenderingContext's viewport.
Name Type Description xNumber X position of viewport
yNumber Y position of viewport
widthNumber Width of viewport
heightNumber Height of viewport
-
Update the framebuffer
Name Type Description framebufferPIXI.Framebuffer