Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer |
The renderer this sprite batch works for. |
Extends
Members
-
Holds the defualt indices of the geometry (quads) to draw
-
renderer PIXI.Renderer inherited
-
The renderer this manager works for.
-
shader Array.<PIXI.Shader>
-
The default shaders that is used if a sprite doesn't have a more specific one. there is a shader for each number of textures that can be rendered. These shaders will also be generated on the fly as required.
-
The number of images in the SpriteRenderer before it flushes.
-
The size of the vertex information in bytes.
-
Number of values sent in the vertex buffer. aVertexPosition(2), aTextureCoord(1), aColor(1), aTextureId(1) = 5
Methods
-
contextChange () overrides
-
Sets up the renderer context and necessary buffers.
-
destroy () overrides
-
Destroys the SpriteRenderer.
-
flush () overrides
-
Renders the content and empties the current batch.
-
Called before the renderer starts rendering.
-
render (sprite) overrides
-
Renders the sprite object.
Name Type Description sprite
PIXI.Sprite the sprite to render when using this spritebatch
-
start () overrides
-
Starts a new sprite batch.
-
stop () overrides
-
Stops and flushes the current batch.