Helper that defines and index buffer for quad geometry

Index buffers allow you to save space in vertex buffers when you share vertices in geometry it is almost always worth it in terms of performance to use an index buffer.

Hierarchy

  • QuadIndexBuffer

Constructors

Properties

Accessors

Methods

Constructors

Properties

buffer: WebGLBuffer

Access to the webgl buffer handle

bufferData: Uint16Array | Uint32Array

Access to the raw data of the index buffer

bufferGlType: number

Depending on the browser this is either gl.UNSIGNED_SHORT or gl.UNSIGNED_INT

Accessors

Methods