PIXI.TextureSystem
class TextureSystem implements PIXI.ISystem
System plugin to the renderer to manage textures.
Constructor
new PIXI.TextureSystem(renderer: PIXI.Renderer) → {}
| Name | Type | Description |
|---|---|---|
| renderer | PIXI.Renderer |
The renderer this system works for. |
Summary
Properties from TextureSystem
| PIXI.BaseTexture[] |
|
| number |
|
| Array<PIXI.BaseTexture> |
|
| boolean |
Whether glTexture with int/uint sampler type was uploaded. |
| PIXI.BaseTexture |
|
Methods from TextureSystem
| void |
Bind a texture to a specific location |
| void |
Sets up the renderer context and necessary buffers. |
| void |
|
| void |
Resets texture location and bound textures Actual |
| void |
|
Public Properties
managedTextures: Array<PIXI.BaseTexture>
List of managed textures.
Protected Properties
protected hasIntegerTextures: boolean
Whether glTexture with int/uint sampler type was uploaded.
protected unknownTexture: PIXI.BaseTexture
BaseTexture value that shows that we don't know what is bound.
Public Methods
bind(texture: PIXI.Texture | PIXI.BaseTexture, location: number) → {void}
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 |
| Type | Description |
|---|---|
| void |
contextChange() → {void}
Sets up the renderer context and necessary buffers.
| Type | Description |
|---|---|
| void |
ensureSamplerType(maxTextures: number) → {void}
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 |
| Type | Description |
|---|---|
| void |
reset() → {void}
Resets texture location and bound textures Actual bind(null, i) calls will be performed at next unbind() call
| Type | Description |
|---|---|
| void |
unbind(texture: PIXI.BaseTexture) → {void}
Unbind a texture.
| Name | Type | Attributes | Description |
|---|---|---|---|
| texture | PIXI.BaseTexture |
<optional> |
Texture to bind |
| Type | Description |
|---|---|
| void |