| Name | Type | Attributes | Description |
|---|---|---|---|
textureOptions |
TextureSourceOptions |
<optional> |
options that will be passed to BaseRenderTexture constructor |
textureOptions.scaleMode |
SCALE_MODE |
<optional> |
See SCALE_MODE for possible values. |
Members
Allow renderTextures of the same size as screen, not just pow2
Automatically sets to true after setScreenSize
- Default Value:
- false
Methods
Clears the pool.
| Name | Type | Attributes | Description |
|---|---|---|---|
destroyTextures |
boolean |
<optional> |
Destroy all stored textures. |
Creates texture with params that were specified in pool constructor.
| Name | Type | Description |
|---|---|---|
pixelWidth |
number |
Width of texture in pixels. |
pixelHeight |
number |
Height of texture in pixels. |
antialias |
boolean |
Returns:
| Type | Description |
|---|---|
| Texture |
Gets a Power-of-Two render texture or fullScreen texture
| Name | Type | Default | Description |
|---|---|---|---|
frameWidth |
number |
The minimum width of the render texture. |
|
frameHeight |
number |
The minimum height of the render texture. |
|
resolution |
number | 1 |
The resolution of the render texture. |
antialias |
boolean |
Returns:
| Type | Description |
|---|---|
| Texture | The new render texture. |
Place a render texture back into the pool.
| Name | Type | Description |
|---|---|---|
renderTexture |
Texture |
The renderTexture to free |