API Docs for: 1.5.0
Show:

WebGLSpriteBatch Class

Constructor

WebGLSpriteBatch

(
  • gl
)
private

Parameters:

  • gl WebGLContext

    the current WebGL drawing context

Methods

begin

(
  • renderSession
)

Parameters:

  • renderSession RenderSession

    the RenderSession

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

renderTilingSprite

(
  • sprite
)

Renders a tilingSprite using the spriteBatch

Parameters:

setBlendMode

(
  • blendMode
)

Sets-up the given blendMode from WebGL's point of view

Parameters:

  • blendMode Number

    the blendMode, should be a Pixi const, such as PIXI.BlendModes.ADD

setContext

(
  • gl
)

Parameters:

  • gl WebGLContext

    the current WebGL drawing context

Properties

indices

Uint16Array

Holds the indices

size

Number

The number of images in the SpriteBatch before it flushes

vertices

Float32Array

Holds the vertices