These docs are for Phaser 2.6.2 Phaser 3 docs can be found on GitHub pages.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

PIXI. WebGLFastSpriteBatch

new WebGLFastSpriteBatch()

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 11)

Public Properties

currentBaseTexture : PIXI.BaseTexture

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 95)

currentBatchSize : number

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 89)

currentBlendMode : number

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 101)

drawing : boolean

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 83)

indexBuffer : Object

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 61)

indices :Uint16Array

Index data

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 48)

lastIndexCount : number

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 67)

matrix :Matrix

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 119)

maxSize : number

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 23)

renderSession : Object

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 107)

shader : Object

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 113)

size : number

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 29)

vertexBuffer : Object

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 55)

vertices :Float32Array

Vertex data

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 41)

vertSize : number

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 17)

Public Methods

begin(spriteBatch, renderSession)

Parameters
Name Type Description
spriteBatch PIXI.WebGLSpriteBatch

-

renderSession Object

-

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 154)

end()

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 169)

flush()

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 349)

render(spriteBatch)

Parameters
Name Type Description
spriteBatch PIXI.WebGLSpriteBatch

-

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 177)

renderSprite(sprite)

Parameters
Name Type Description
sprite PIXI.Sprite

-

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 208)

setContext(gl)

Sets the WebGL Context.

Parameters
Name Type Description
gl WebGLContext

the current WebGL drawing context

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 130)

start()

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 397)

stop()

Source code: pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js (Line 389)