B2G/gecko/browser/devtools/tilt/TiltGL.jsm
/**
   * Initializes a shader program, using specified source code as strings,
   * returning the newly created shader program, by compiling and linking the
   * vertex and fragment shader.
   *
   * @param {Object} aContext
   *                 a WebGL context
   * @param {Object} aProperties
   *                 an object containing the following properties:
   *        {String} vs: the vertex shader source code
   *        {String} fs: the fragment shader source code
   *         {Array} attributes: an array of attributes as strings
   *         {Array} uniforms: an array of uniforms as strings
   */
Initializes a shader program, using specified source code as strings,
returning the newly created shader program, by compiling and linking the
vertex and fragment shader.


Initializes a shader program using specified source code as strings returning the newly created shader program by compiling and linking the vertex and fragment shader .
function TGLPU_create(aContext, aProperties)
  {
    aProperties = aProperties || {};
    let vertShader = this.compile(aContext, aProperties.vs, "vertex");
    let fragShader = this.compile(aContext, aProperties.fs, "fragment");
    let program = this.link(aContext, vertShader, fragShader);
    aContext.deleteShader(vertShader);
    aContext.deleteShader(fragShader);
    return this.cache(aContext, aProperties, program);
  }
function TGLPU_create ( aContext , aProperties ) { aProperties = aProperties || { } ; let vertShader = this . compile ( aContext , aProperties . vs , "vertex" ) ; let fragShader = this . compile ( aContext , aProperties . fs , "fragment" ) ; let program = this . link ( aContext , vertShader , fragShader ) ; aContext . deleteShader ( vertShader ) ; aContext . deleteShader ( fragShader ) ; return this . cache ( aContext , aProperties , program ) ; }
Initializes a shader program, using specified source code as strings,
 returning the newly created shader program, by compiling and linking the
 vertex and fragment shader.
Initializes a shader program using specified source code as strings returning the newly created shader program by compiling and linking the vertex and fragment shader .
// make sure the properties parameter is a valid object // compile the two shaders