Class: RenderTexture

Phaser. RenderTexture

Phaser.RenderTexture

new RenderTexture(game, key, width, height)

A RenderTexture is a special texture that allows any displayObject to be rendered to it.

Parameters:
Name Type Argument Default Description
game Phaser.Game

Current game instance.

key string

Internal Phaser reference key for the render texture.

width number <optional>
100

The width of the render texture.

height number <optional>
100

The height of the render texture.

Source:

Members

game

Properties:
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source:

key

Properties:
Name Type Description
key string

The key of the RenderTexture in the Cache, if stored there.

Source:

type

Properties:
Name Type Description
type number

Base Phaser object type.

Source:
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Wed Feb 19 2014 05:26:30 GMT-0000 (GMT) using the DocStrap template.