B2G/gecko/browser/devtools/tilt/TiltGL.jsm
/**
   * Initializes a shader program, using specified source code as strings.
   *
   * @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.
Initializes a shader program using specified source code as strings .
function TGLP_initProgram(aProperties)
  {
    this._ref = TiltGL.ProgramUtils.create(this._context, aProperties);
    this._id = this._ref.id;
    this._attributes = this._ref.attributes;
    this._uniforms = this._ref.uniforms;
    delete this._ref.id;
    delete this._ref.attributes;
    delete this._ref.uniforms;
  }
function TGLP_initProgram ( aProperties ) { this . _ref = TiltGL . ProgramUtils . create ( this . _context , aProperties ) ; this . _id = this . _ref . id ; this . _attributes = this . _ref . attributes ; this . _uniforms = this . _ref . uniforms ; delete this . _ref . id ; delete this . _ref . attributes ; delete this . _ref . uniforms ; }
Initializes a shader program, using specified source code as strings.
Initializes a shader program using specified source code as strings .
// cache for faster access // cleanup