Navigation
These archived docs are for Phaser 2.2.2 Phaser 3 docs can be found on newdocs.phaser.io.
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 : PIXI.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