TileRenderer
class TileRenderer extends PIXI.ObjectRenderer
Rendering helper pipeline for tilemaps. This plugin is registered automatically.
Constructor
new TileRenderer(renderer: PIXI.Renderer) → {}
Name | Type | Description |
---|---|---|
renderer | PIXI.Renderer |
The managing renderer |
Summary
Properties from TileRenderer
PIXI.Renderer |
The managing renderer |
The tile animation frame |
Methods from TileRenderer
void |
Binds the tile textures to the renderer, and updates the tilemap shader's |
TilemapShader |
|
Methods inherited from ObjectRenderer
void |
Generic destruction method that frees all resources. This should be called by subclasses. |
void |
Stub method that should be used to empty the current batch by rendering objects now. |
void |
|
void |
|
void |
Stops the renderer. It should free up any state and become dormant. |
Public Properties
Public Methods
bindTileTextures(renderer: PIXI.Renderer, textures: Array<PIXI.BaseTexture>) → {void}
Binds the tile textures to the renderer, and updates the tilemap shader's uSamplerSize
uniform.
Name | Type | Description |
---|---|---|
renderer | PIXI.Renderer |
The renderer to which the textures are to be bound. |
textures | Array<PIXI.BaseTexture> |
The tile textures being bound. |
Type | Description |
---|---|
void |
getShader() → {TilemapShader}
Type | Description |
---|---|
TilemapShader |
The TilemapShader shader that this rendering pipeline is using. |