Phaser API Documentation

  Version: 
createBatch(texture)

Description:

Creates a new WebGL Pipeline Batch Entry, sets the texture unit as zero and pushes the entry into the batch.

Parameters:

name type description
texture WebGLTexture

The WebGLTexture assigned to this batch entry.

Returns:
Description:

The texture unit that was bound.

Type:
  • number
Since: 3.60.0