WebGLSpriteBatch Class
Constructor
WebGLSpriteBatch
(
private
-
gl
Parameters:
-
gl
WebGLContextthe current WebGL drawing context
Item Index
Methods
begin
(
-
renderSession
Parameters:
-
renderSession
RenderSessionthe RenderSession
destroy
()
Destroys the SpriteBatch
end
()
flush
()
Renders the content and empties the current batch
renderTilingSprite
(
-
sprite
Renders a tilingSprite using the spriteBatch
Parameters:
-
sprite
TilingSpritethe tilingSprite to render
setBlendMode
(
-
blendMode
Sets-up the given blendMode from WebGL's point of view
Parameters:
-
blendMode
Numberthe blendMode, should be a Pixi const, such as PIXI.BlendModes.ADD
setContext
(
-
gl
Parameters:
-
gl
WebGLContextthe current WebGL drawing context
start
()
stop
()
Properties
indices
Uint16Array
Holds the indices
size
Number
The number of images in the SpriteBatch before it flushes
vertices
Float32Array
Holds the vertices