B2G/gecko/browser/devtools/tilt/TiltGL.jsm
/**
   * Binds a vertex buffer as an array buffer for a specific shader attribute.
   *
   * @param {String} aAtribute
   *                 the attribute name obtained from the shader
   * @param {Float32Array} aBuffer
   *                       the buffer to be bound
   */
Binds a vertex buffer as an array buffer for a specific shader attribute.
@param {String} aAtribute
the attribute name obtained from the shader
@param {Float32Array} aBuffer
the buffer to be bound
Binds a vertex buffer as an array buffer for a specific shader attribute . @param { String } aAtribute the attribute name obtained from the shader @param { Float32Array } aBuffer the buffer to be bound
function TGLP_bindVertexBuffer(aAtribute, aBuffer)
  {
    let gl = this._context;
    let attr = this._attributes[aAtribute];
    let size = aBuffer.itemSize;
    gl.bindBuffer(gl.ARRAY_BUFFER, aBuffer._ref);
    gl.vertexAttribPointer(attr, size, gl.FLOAT, false, 0, 0);
  }
function TGLP_bindVertexBuffer ( aAtribute , aBuffer ) { let gl = this . _context ; let attr = this . _attributes [ aAtribute ] ; let size = aBuffer . itemSize ; gl . bindBuffer ( gl . ARRAY_BUFFER , aBuffer . _ref ) ; gl . vertexAttribPointer ( attr , size , gl . FLOAT , false , 0 , 0 ) ; }
Binds a vertex buffer as an array buffer for a specific shader attribute.
Binds a vertex buffer as an array buffer for a specific shader attribute .
// get the cached attribute value from the shader