WebGLSpriteBatch Class
Constructor
WebGLSpriteBatch
(
private
-
gl
Parameters:
-
glWebGLContextthe current WebGL drawing context
Item Index
Methods
begin
(
-
renderSession
Parameters:
-
renderSessionRenderSessionthe RenderSession
destroy
()
Destroys the SpriteBatch
end
()
flush
()
Renders the content and empties the current batch
renderTilingSprite
(
-
sprite
Renders a tilingSprite using the spriteBatch
Parameters:
-
spriteTilingSpritethe tilingSprite to render
setBlendMode
(
-
blendMode
Sets-up the given blendMode from WebGL's point of view
Parameters:
-
blendModeNumberthe blendMode, should be a Pixi const, such as PIXI.BlendModes.ADD
setContext
(
-
gl
Parameters:
-
glWebGLContextthe 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
