new WebGLFastSpriteBatch()
Members
-
currentBaseTexture : BaseTexture
-
Type:
- BaseTexture
-
currentBatchSize : Number
-
Type:
- Number
-
currentBlendMode : Number
-
Type:
- Number
-
drawing : Boolean
-
Type:
- Boolean
-
indexBuffer : Object
-
Type:
- Object
-
indices : Uint16Array
-
Index data
Type:
- Uint16Array
-
lastIndexCount : Number
-
Type:
- Number
-
matrix : Matrix
-
Type:
- Matrix
-
maxSize : Number
-
Type:
- Number
-
renderSession : Object
-
Type:
- Object
-
shader : Object
-
Type:
- Object
-
size : Number
-
Type:
- Number
-
vertexBuffer : Object
-
Type:
- Object
-
vertices : Float32Array
-
Vertex data
Type:
- Float32Array
-
vertSize : Number
-
Type:
- Number
Methods
-
begin(spriteBatch, renderSession)
-
Parameters:
Name Type Description spriteBatch
WebGLSpriteBatch renderSession
Object -
end()
-
flush()
-
render(spriteBatch)
-
Parameters:
Name Type Description spriteBatch
WebGLSpriteBatch -
renderSprite(sprite)
-
Parameters:
Name Type Description sprite
Sprite -
setContext(gl)
-
Sets the WebGL Context.
Parameters:
Name Type Description gl
WebGLContext the current WebGL drawing context
-
start()
-
stop()