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.
name | type | arguments | description |
---|---|---|---|
buffer | Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper | <optional> |
The Vertex Buffer to be bound. Defaults to the one owned by this pipeline. |
true
if the vertex buffer was bound, or false
if it was already bound.