| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
textureOptions |
object |
optional
options that will be passed to BaseRenderTexture constructor
|
Members
-
Key that is used to store fullscreen renderTextures in a pool
-
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 Default Description destroyTexturesboolean true optional destroy all stored textures
-
creates of texture with params that were specified in pool constructor
Name Type Description realWidthnumber width of texture in pixels
realHeightnumber height of texture in pixels
Returns:
Type Description RenderTexture -
getFilterTexture (input, resolution)PIXI.RenderTexture
-
Gets extra texture of the same size as input renderTexture
getFilterTexture(input, 0.5)orgetFilterTexture(0.5, input)Name Type Description inputPIXI.RenderTexture renderTexture from which size and resolution will be copied
resolutionnumber optional override resolution of the renderTexture It overrides, it does not multiply
Returns:
Type Description PIXI.RenderTexture -
getOptimalTexture (minWidth, minHeight, resolution)PIXI.RenderTexture protected
-
Gets a Power-of-Two render texture or fullScreen texture
Name Type Default Description minWidthnumber The minimum width of the render texture in real pixels.
minHeightnumber The minimum height of the render texture in real pixels.
resolutionnumber 1 optional The resolution of the render texture.
Returns:
Type Description PIXI.RenderTexture The new render texture. -
Alias for returnTexture, to be compliant with FilterSystem interface
Name Type Description renderTexturePIXI.RenderTexture The renderTexture to free
-
Place a render texture back into the pool.
Name Type Description renderTexturePIXI.RenderTexture The renderTexture to free
-
If screen size was changed, drops all screen-sized textures, sets new screen size, sets
enableFullScreento trueSize is measured in pixels,
renderer.viewcan be passed here, notrenderer.screenName Type Description sizePIXI.ISize Initial size of screen