Class: BatchSystem

PIXI.systems.BatchSystem

System plugin to the renderer to manage batching.

new PIXI.systems.BatchSystem (renderer)

Name Type Description
renderer PIXI.Renderer

The renderer this System works for.

Extends

Members

currentRenderer PIXI.ObjectRenderer

The currently active ObjectRenderer.

emptyRenderer PIXI.ObjectRenderer

An empty renderer.

The renderer this manager works for.

Methods

contextChange (gl) inherited

Generic method called when there is a WebGL context change.

Name Type Description
gl WebGLRenderingContext

new webgl context

destroy () inherited

Generic destroy methods to be overridden by the subclass

This should be called if you wish to do some custom rendering It will basically render anything that may be batched up such as sprites

Reset the system to an empty renderer

setObjectRenderer (objectRenderer)

Changes the current renderer to the one given in parameter

Name Type Description
objectRenderer PIXI.ObjectRenderer

The object renderer to use.