new PIXI.TextureSystem (renderer) overrides
Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer |
The renderer this System works for. |
Extends
Implements
Members
boundTextures Array<PIXI.BaseTexture> readonly
Bound textures
Current location
managedTextures Array<PIXI.BaseTexture> readonly
List of managed textures
unknownTexture PIXI.BaseTexture readonly
BaseTexture value that shows that we don't know what is bound
Whether glTexture with int/uint sampler type was uploaded.
Methods
Bind a texture to a specific location
If you want to unbind something, please use unbind(texture)
instead of bind(null, textureLocation)
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
texture_ |
PIXI.Texture | PIXI.BaseTexture |
Texture to bind |
||
location |
number |
<optional> |
0 |
Location to bind at |
Sets up the renderer context and necessary buffers.
Ensures that current boundTextures all have FLOAT sampler type, see PIXI.SAMPLER_TYPES for explanation.
Name | Type | Description |
---|---|---|
maxTextures |
number |
number of locations to check |
Resets texture location and bound textures
Actual bind(null, i)
calls will be performed at next unbind()
call
Unbind a texture
Name | Type | Attributes | Description |
---|---|---|---|
texture |
PIXI.BaseTexture |
<optional> |
Texture to bind |
Inherited Properties
From class PIXI.System
renderer Renderer inherited
Reference to the main renderer
Inherited Methods
From class PIXI.System
destroy () void inherited
Destroy and don't use after this.