| Name | Type | Description | 
|---|---|---|
renderer | 
            
            PIXI.Renderer | 
                 The renderer this System works for.  | 
        
Implements
Members
current PIXI.RenderTexture | null readonly
Render texture currently bound. null if rendering to the canvas.
defaultMaskStack Array<PIXI.MaskData> readonly
List of masks for the PIXI.StencilSystem.
destinationFrame PIXI.Rectangle readonly
The destination frame for the render-target's projection mapping.
See PIXI.ProjectionSystem#destinationFrame for more details.
sourceFrame PIXI.Rectangle readonly
The source frame for the render-target's projection mapping.
See PIXI.ProjectionSystem#sourceFrame for more details
viewportFrame PIXI.Rectangle readonly
The 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).
Methods
Bind the current render texture.
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
renderTexture | 
            
            PIXI.RenderTexture | undefined | 
                 RenderTexture to bind, by default its   | 
        |
sourceFrame | 
            
            PIXI.Rectangle | 
                
                    <optional> | 
            
            
                
                 Part of world that is mapped to the renderTexture.  | 
        |
destinationFrame | 
            
            PIXI.Rectangle | 
                
                    <optional> | 
            
            
                
                 Part of renderTexture, by default it has the same size as sourceFrame.  | 
        
Erases the render texture and fills the drawing area with a colour.
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
clearColor | 
            
            PIXI.ColorSource | 
                
                    <optional> | 
            
            
                
                 The color as rgba, default to use the renderer backgroundColor  | 
        |
mask | 
            
            PIXI.BUFFER_BITS | 
                
                    <optional> | 
            
            
                BUFFER_BITS.COLOR | BUFFER_BITS.DEPTH | 
                 Bitwise OR of masks that indicate the buffers to be cleared, by default COLOR and DEPTH buffers.  | 
        
Resets render-texture state.