The renderer this System works for.
ReadonlycurrentRender texture currently bound. {@code null} if rendering to the canvas.
ReadonlydefaultList of masks for the PIXI.StencilSystem.
ReadonlydestinationThe destination frame for the render-target's projection mapping.
See PIXI.ProjectionSystem#destinationFrame for more details.
ReadonlysourceThe source frame for the render-target's projection mapping.
See PIXI.ProjectionSystem#sourceFrame for more details
ReadonlyviewportThe viewport frame for the render-target's viewport binding. This is equal to the destination-frame for render-textures, while it is y-flipped when rendering to the screen (i.e. its origin is always on the bottom-left).
Bind the current render texture.
OptionalrenderTexture: RenderTextureRenderTexture to bind, by default its null - the screen.
OptionalsourceFrame: RectanglePart of world that is mapped to the renderTexture.
OptionaldestinationFrame: RectanglePart of renderTexture, by default it has the same size as sourceFrame.
Erases the render texture and fills the drawing area with a colour.
OptionalclearColor: ColorSourceThe color as rgba, default to use the renderer backgroundColor
Optionalmask: 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
Resets render-texture state.
System plugin to the renderer to manage render textures.
Should be added after FramebufferSystem
Frames
The
RenderTextureSystemholds a sourceFrame → destinationFrame projection. The following table explains the different coordinate spaces used:Memberof
PIXI