Phaser API Documentation

  Version: 
setVertexBuffer()

Description:

Binds the vertex buffer to be the active ARRAY_BUFFER on the WebGL context.

It first checks to see if it's already set as the active buffer and only binds itself if not.

Returns:
Description:

true if the vertex buffer was bound, or false if it was already bound.

Type:
  • boolean
Since: 3.50.0