Phaser API Documentation

  Version: 
batchVert(x, y, tint)

Description:

Adds a single vertex to the current vertex buffer and increments the vertexCount property by 1.

This method is called directly by batchTri and batchQuad.

It does not perform any batch limit checking itself, so if you need to call this method directly, do so in the same way that batchQuad does, for example.

Parameters:

name type description
x number

The vertex x position.

y number

The vertex y position.

tint number

The tint color value.