TileRenderer

class TileRenderer extends PIXI.ObjectRenderer

Rendering helper pipeline for tilemaps. This plugin is registered automatically.

Constructor


new TileRenderer(renderer: PIXI.Renderer) → {}
Parameters:
Name Type Description
renderer PIXI.Renderer

The managing renderer

Summary


Properties from TileRenderer

PIXI.Renderer
renderer

The managing renderer

tileAnim

The tile animation frame

Methods from TileRenderer

void
bindTileTextures(renderer: PIXI.Renderer, textures: Array<PIXI.BaseTexture>)

Binds the tile textures to the renderer, and updates the tilemap shader's uSamplerSize uniform.

TilemapShader
getShader()

Methods inherited from ObjectRenderer

void
destroy()

Generic destruction method that frees all resources. This should be called by subclasses.

void
flush()

Stub method that should be used to empty the current batch by rendering objects now.

void
render(_object: PIXI.DisplayObject)
void
start()
void
stop()

Stops the renderer. It should free up any state and become dormant.

Public Properties


renderer TileRenderer.ts:16
renderer: PIXI.Renderer

The managing renderer

tileAnim TileRenderer.ts:19
tileAnim

The tile animation frame

Public Methods


bindTileTextures TileRenderer.ts:47
bindTileTextures(renderer: PIXI.Renderer, textures: Array<PIXI.BaseTexture>) → {void}

Binds the tile textures to the renderer, and updates the tilemap shader's uSamplerSize uniform.

Parameters:
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.

Returns:
Type Description
void
getShader TileRenderer.ts:139
getShader() → {TilemapShader}
Returns:
Type Description
TilemapShader

The TilemapShader shader that this rendering pipeline is using.


Powered by webdoc!