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 Tue Feb 18 2014 03:01:25 GMT-0000 (GMT) using the DocStrap template.