API Docs for: 2.2.1
Show:

WebGLSpriteBatch Class

Methods

begin

(
  • renderSession
)

Parameters:

  • renderSession Object

    The RenderSession object

destroy

()

Destroys the SpriteBatch.

flush

()

Renders the content and empties the current batch.

render

(
  • sprite
)

Parameters:

  • sprite Sprite

    the sprite to render when using this spritebatch

renderBatch

(
  • texture
  • size
  • startIndex
)

Parameters:

renderTilingSprite

(
  • tilingSprite
)

Renders a TilingSprite using the spriteBatch.

Parameters:

setContext

(
  • gl
)

Parameters:

  • gl WebGLContext

    the current WebGL drawing context