Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

Accessors

Methods

Constructors

  • new QuadIndexBuffer(numberOfQuads: number, useUint16?: boolean): QuadIndexBuffer

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

  • get size(): number

Methods

  • bind(): void
  • upload(): void