B2G/gecko/browser/devtools/tilt/TiltGL.jsm
/**
   * Draws bound vertex buffers using the specified parameters.
   * This function also makes use of an index buffer.
   *
   * @param {Number} aDrawMode
   *                 WebGL enum, like TRIANGLES
   * @param {TiltGL.IndexBuffer} aIndicesBuffer
   *                             indices for the vertices buffer
   */
Draws bound vertex buffers using the specified parameters.
This function also makes use of an index buffer.


Draws bound vertex buffers using the specified parameters . This function also makes use of an index buffer .
function TGLR_drawIndexedVertices(
    aDrawMode, aIndicesBuffer)
  {
    let gl = this.context;
    gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, aIndicesBuffer._ref);
    gl.drawElements(aDrawMode, aIndicesBuffer.numItems, gl.UNSIGNED_SHORT, 0);
  }
function TGLR_drawIndexedVertices ( aDrawMode , aIndicesBuffer ) { let gl = this . context ; gl . bindBuffer ( gl . ELEMENT_ARRAY_BUFFER , aIndicesBuffer . _ref ) ; gl . drawElements ( aDrawMode , aIndicesBuffer . numItems , gl . UNSIGNED_SHORT , 0 ) ; }
Draws bound vertex buffers using the specified parameters.
Draws bound vertex buffers using the specified parameters .