RenderTexture Class
A RenderTexture is a special texture that allows any pixi displayObject to be rendered to it.
Constructor
RenderTexture
(
-
width -
height
Parameters:
-
widthNumber -
heightNumber
Methods
fromFrame
(
-
frameId
Helper function that returns a texture based on a frame id If the frame id is not in the texture cache an error will be thrown
Parameters:
-
frameIdStringThe frame id of the texture
Returns:
Texture
render
(
-
displayObject -
clear
This function will draw the display object to the texture.
Parameters:
-
displayObjectDisplayObject -
clearBooleanIf true the texture will not be cleared before the displayObject is drawn
Properties
frame
#Rectangle
The frame specifies the region of the base texture that this texture uses
