new RenderTexture(game, key, width, height)
A RenderTexture is a special texture that allows any displayObject to be rendered to it.
Parameters:
Name | Type | Description |
---|---|---|
game |
Phaser.Game | Current game instance. |
key |
string | Asset key for the render texture. |
width |
number | the width of the render texture. |
height |
number | the height of the render texture. |
- Source:
Members
-
frame
-
- Source:
Properties:
Name Type Description frame
PIXI.Rectangle The frame for this texture.
-
game
-
- Source:
Properties:
Name Type Description game
Phaser.Game A reference to the currently running game.
-
height
-
- Source:
Properties:
Name Type Description height
number the height.
-
indetityMatrix
-
- Source:
Properties:
Name Type Description indetityMatrix
PIXI.mat3 Matrix object.
-
name
-
- Source:
Properties:
Name Type Description name
string the name of the object.
-
type
-
- Source:
Properties:
Name Type Description type
number Base Phaser object type.
-
width
-
- Source:
Properties:
Name Type Description width
number the width.