pixi.renderers.webgl.utils.WebGLSpriteBatch

type
class
metadata
:native
"PIXI.WebGLSpriteBatch"

Constructor

new()

Instance Variables

blendModes : Array<Dynamic>

currentBaseTexture : pixi.textures.BaseTexture

currentBatchSize : Float

defaultShader : pixi.filters.AbstractFilter

dirty : Bool

drawing : Bool

indices : Array<Int>

Holds the indices

lastIndexCount : Int

shaders : Array<Dynamic>

size : Float

The number of images in the SpriteBatch before it flushes

sprites : Array<pixi.display.Sprite>

textures : Array<pixi.textures.Texture>

vertSize : Int

vertices : Array<Float>

Holds the vertices

Instance Methods

begin(renderSession : Dynamic) : Void

parameters
renderSession {Object} The RenderSession object

destroy() : Void

Destroys the SpriteBatch.

end() : Void

flush() : Void

Renders the content and empties the current batch.

render(sprite : pixi.display.Sprite) : Void

parameters
sprite {Sprite} the sprite to render when using this spritebatch

renderBatch(texture : pixi.textures.Texture, size : Float, startIndex : Int) : Void

parameters
texture {Texture}
size {Number}
startIndex {Number}

renderTilingSprite(tilingSprite : pixi.extras.TilingSprite) : Void

parameters
tilingSprite {TilingSprite} the tilingSprite to render
Renders a TilingSprite using the spriteBatch.

setContext(gl : Dynamic) : Void

parameters
gl {WebGLContext} the current WebGL drawing context

start() : Void

stop() : Void