WebGLSpriteBatch Class
Constructor
WebGLSpriteBatch
()
private
Item Index
Methods
Methods
_CompileShader
(
Any
private
-
gl -
shaderSrc -
shaderType
Parameters:
-
glWebGLContextthe current WebGL drawing context
-
shaderSrcArray -
shaderTypeNumber
Returns:
Any:
begin
(
-
renderSession
Parameters:
-
renderSessionObjectThe RenderSession object
CompileFragmentShader
(
Any
-
gl -
shaderSrc
Parameters:
-
glWebGLContextthe current WebGL drawing context
-
shaderSrcArray
Returns:
Any:
compileProgram
(
Any
-
gl -
vertexSrc -
fragmentSrc
Parameters:
-
glWebGLContextthe current WebGL drawing context
-
vertexSrcArray -
fragmentSrcArray
Returns:
Any:
CompileVertexShader
(
Any
-
gl -
shaderSrc
Parameters:
-
glWebGLContextthe current WebGL drawing context
-
shaderSrcArray
Returns:
Any:
destroy
()
Destroys the SpriteBatch.
end
()
flush
()
Renders the content and empties the current batch.
initDefaultShaders
()
private
renderTilingSprite
(
-
sprite
Renders a TilingSprite using the spriteBatch.
Parameters:
-
spriteTilingSpritethe tilingSprite to render
setContext
(
-
gl
Parameters:
-
glWebGLContextthe current WebGL drawing context
start
()
stop
()
Properties
blendModes
Array
currentBatchSize
Number
dirty
Boolean
drawing
Boolean
indices
Uint16Array
Holds the indices
lastIndexCount
Number
shaders
Array
size
Number
The number of images in the SpriteBatch before it flushes
sprites
Array
textures
Array
vertices
Float32Array
Holds the vertices
