pixi.textures.RenderTexture
- type
- class
- extends
- Texture
- metadata
- :native
- "PIXI.RenderTexture"
Constructor
- parameters
[width] {Float} The width of the render texture
[height] {Float} The height of the render texture
[renderer] {CanvasRenderer|WebGLRenderer} The renderer used for this RenderTexture
[scaleMode] {Int} Should be one of the PIXI.scaleMode consts
[resolution] {Float} The resolution of the texture being generated
- parameters
destroyBase {Bool} Whether to destroy the base texture as well
- returns
- {String} A base64 encoded string of the texture.
- returns
- {CanvasElement} A Canvas element with the texture rendered on.
- parameters
displayObject {DisplayObject} The display object to render this texture on
[matrix] {Matrix} Optional matrix to apply to the display object before rendering.
[clear] {Bool} If true the texture will be cleared before the displayObject is drawn
- parameters
width {Float} The width to resize to.
height {Float} The height to resize to.
[updateBase] {Bool} Should the baseTexture.width and height values be resized as well?