Class WebGLBatch

Index

Constructor methods

Methods

Constructor methods

constructor(webGLContext: WebGLRenderingContext): WebGLBatch

Parameters

  • webGLContext: WebGLRenderingContext

Returns

WebGLBatch

Methods

public clean()

public growBatch()

public init(sprite: Sprite)

Parameters

public insertAfter(sprite: Sprite, previousSprite: Sprite)

Parameters

public insertBefore(sprite: Sprite, nextSprite: Sprite)

Parameters

public merge(batch: WebGLBatch)

Parameters

public refresh()

public remove(sprite: Sprite)

Parameters

public render()

public restoreLostContext(gl: WebGLRenderingContext): any

Parameters

  • gl: WebGLRenderingContext

Returns

any

public split(sprite: Sprite): WebGLBatch

Parameters

Returns

WebGLBatch

public update()